#include //#define int long long using namespace std; signed main(){ cin.tie(0); ios::sync_with_stdio(0); vector groupIndexes; vector parities; vector groups; size_t inpSize, queries; cin >> inpSize >> queries; groups.push_back(0); bool nextGr = false; size_t groupIn = 0; for(size_t i = 0; i < inpSize; ++i) { size_t num; cin >> num; bool even = !(num % 2); parities.push_back(even); if(nextGr) { groups.push_back(0); ++groupIn; } if(even) groups[groups.size()-1]++; groupIndexes.push_back(groupIn); char a = '0'; if(i+1 < inpSize) cin >> a; nextGr = (a != '*'); } size_t numberOfOdd = 0; for(size_t i = 0; i < groups.size(); ++i) if(groups[i] == 0) ++numberOfOdd; bool result = !(numberOfOdd % 2); for(size_t i = 0; i < queries; ++i) { cout << (result ? "even\n" : "odd\n"); size_t a, b; cin >> a >> b; bool newEven = !(b%2); bool oldEven = parities[a-1]; if(oldEven == newEven) continue; parities[a-1] = newEven; groups[groupIndexes[a-1]] += newEven ? 1 : -1; if((groups[groupIndexes[a-1]] == 0) || (groups[groupIndexes[a-1]] == 1 && newEven)) result = !result; } cout << (result ? "even\n" : "odd\n"); }