#include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; using ull = unsigned long long; using uint = unsigned int; const int MN = 200128; const int MD = 100128; vector g[MD]; using B = array; const size_t BS = MN/64; void orassign(B &l, B r) { for (int i = 0; i < BS; i++) { l[i] |= r[i]; } } void xorassign(B &l, B r) { for (int i = 0; i < BS; i++) { l[i] ^= r[i]; } } B shiftL(const B &x, int k) { // << B ans; ans.fill(0); for (int i = 0; i < BS-k/64; i++) { ans[i+k/64] |= x[i]<<(k%64); if (i < BS-k/64-1 && k%64) { ans[i+k/64+1] |= x[i]>>(64-k%64); } } return ans; } int main() { int n; scanf("%d", &n); for (int i = 0; i < n; i++) { int a; scanf("%d", &a); g[a].push_back(i); } B mp; mp.fill(0); for (int i = 0; i < n; i++) { int x; scanf("%d", &x); if (x) { mp[i/64] |= 1ULL<<(i%64); } } B ans; ans.fill(0); for (int i = 0; i < MD; i++) { B res; res.fill(0); for (int d: g[i]) { orassign(res, shiftL(mp, d)); } xorassign(ans, res); } for (int i = 0; i < 2*n-1; i++) { if (ans[i/64] & (1ULL<<(i%64))) { printf("ODD\n"); } else { printf("EVEN\n"); } } return 0; }