package yukicoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.Iterator; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().solver(); } void solver() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; int[] b = new int[N]; for (int i = 0; i < N; i++) { a[i] = sc.nextInt() - 1; } for (int i = 0; i < N; i++) { b[i] = sc.nextInt(); } int[][] bucket = makeBucket(a, 100001); // stamp[i][j]:スタンプをiだけ左にシフトしたとき、64ビット区分でi番目の区分にはどのような数が入るか。 long[][] stamp = new long[64][(N >>> 6) + 2]; for (int i = 0; i < 64; i++) { for (int j = 0; j < N; j++) { stamp[i][(i + j) >>> 6] |= (long) b[j] << (j + i); } } long[] ans = new long[((2 * N) >>> 6) + 10]; for (int[] row : bucket) { long[] d = new long[(2 * N >>> 6) + 10]; for (int x : row) { int lo = 63 & x; int hi = x >>> 6; for (int j = 0; j < ((N >>> 6) + 2) && j + hi < d.length; j++) { d[j + hi] |= stamp[lo][j]; } } for (int i = 0; i < d.length; i++) { ans[i] ^= d[i]; } } Printer pr=new Printer(System.out); // System.out.println(Long.toBinaryString(ans[0])); for (int i = 0; i < 2 * N - 1; i++) { // System.out.println(Long.toBinaryString(ans[i>>>6])); if (((ans[i >>> 6]) >> (i & 63) & 1) == 1) { pr.println("ODD"); } else { pr.println("EVEN"); } } pr.close(); } void tr(Object... o) { System.out.println(Arrays.deepToString(o)); } int[][] makeBucket(int[] a, int sup) { int n = a.length; int[][] bucket = new int[sup + 1][]; int[] bp = new int[sup + 1]; for (int i = 0; i < n; i++) { bp[a[i]]++; } for (int i = 0; i < sup + 1; i++) { bucket[i] = new int[bp[i]]; } for (int i = n - 1; i >= 0; i--) { bucket[a[i]][--bp[a[i]]] = i; } return bucket; } private static class Scanner{ BufferedReader br; Iterator it; Scanner(InputStream in){ br=new BufferedReader(new InputStreamReader(in)); } String next()throws RuntimeException{ try{ if(it==null||!it.hasNext()) it=Arrays.asList(br.readLine().split(" ")).iterator(); return it.next(); }catch(IOException e){ throw new IllegalStateException(); } } int nextInt() throws RuntimeException{ return Integer.parseInt(next()); } long nextLong() throws RuntimeException{ return Long.parseLong(next()); } double nextDouble() throws RuntimeException{ return Double.parseDouble(next()); } void close(){ try{ br.close(); }catch(IOException e){ throw new IllegalStateException(); } } } private static class Printer extends PrintWriter{ Printer(PrintStream out){ super(out); } } }