#include #include #include constexpr uint M = 100000; constexpr uint L = 2 * M - 1; std::bitset pos, ans; std::vector off[M]; int main() { uint N; std::cin >> N; for (uint i = 0, a; i < N; i++) { std::cin >> a, off[a - 1].push_back(i); } for (uint i = 0, b; i < N; i++) { std::cin >> b, pos |= (b << i); } std::bitset mask; for (uint i = 0; i < M; i++) { if (off[i].empty()) { continue; } mask.reset(); for (const uint o : off[i]) { mask |= (pos << o); } ans ^= mask; } for (uint i = 0; i < 2 * N - 1; i++) { std::cout << (ans.test(i) ? "ODD" : "EVEN") << std::endl; } return 0; }