package com.example; import java.io.FileNotFoundException; import java.io.FileReader; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N], b = new int[N]; for(int i = 0; i < N; ++ i) a[i] = sc.nextInt(); for(int i = 0; i < N; ++ i) b[i] = sc.nextInt(); int X = (N - 1) / 64 + 1; long[] B = new long[X * 2 + 2]; for(int i = 0; i < N; ++ i) if(b[i] == 1) B[i / 64] |= 1L << i % 64; List values = new ArrayList(); for(int i = 0; i < N; ++ i) values.add((long)a[i] << 32 | i); Collections.sort(values); int V = 0; int[][] shifts = new int[N][]; int[] tmp = new int[N]; for(int i = 0, j; i < N; i = j) { int k = 0; for(j = i; j < N && values.get(j) >>> 32 == values.get(i) >>> 32; ++ j) tmp[k ++] = values.get(j).intValue(); shifts[V] = Arrays.copyOf(tmp, k); ++ V; } long[] row = new long[X * 2 + 2]; long[] C = new long[X * 2]; for(int i = 0; i < V; ++ i) { int Y = X + shifts[i][shifts[i].length - 1] / 64 + 1; Arrays.fill(row, 0, Y, 0L); for(int shift : shifts[i]) shiftOr(row, B, X, shift); for(int j = 0; j < Y; ++ j) C[j] ^= row[j]; } for(int i = 0; i < N * 2 - 1; ++ i) System.out.println((C[i / 64] >>> (i % 64) & 1) != 0 ? "ODD" : "EVEN"); } static void shiftOr(long[] x, long[] y, int N, int shift) { if(N <= 0) return; int offset = shift / 64; shift %= 64; if(shift == 0) { for(int i = 0; i < N; ++ i) x[offset + i] |= y[i]; }else { int shift2 = 64 - shift; x[offset] |= y[0] << shift; for(int i = 0; i < N - 1; ++ i) x[offset+ i + 1] |= y[i + 1] << shift | y[i] >>> shift2; x[offset + N] |= y[N - 1] >>> shift2; } } }