#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair i_i; typedef pair ll_i; typedef pair d_i; typedef pair ll_ll; typedef pair d_d; struct edge { int u, v; ll w; }; int INF = INT_MAX / 10; ll MOD = 10007; ll _MOD = 1000000009; double EPS = 1e-10; int main() { int N; cin >> N; vector > v(N); for (int i = 0; i < N; i++) { int a; scanf("%d", &a); v[a - 1].push_back(i); } bitset<200000> x; for (int i = 0; i < N; i++) { int b; scanf("%d", &b); if (b) x.set(i); } bitset<200000> z; for (vector& a: v) { bitset<200000> y; for (int i: a) y |= x << i; z ^= y; } for (int i = 0; i < N * 2 - 1; i++) cout << (!z[i] ? "EVEN" : "ODD") << endl; }