import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { Main o = new Main(); o.solve(); } public void solve() { FastScanner sc = new FastScanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; for (int i = 0; i < N; i++) { a[i] = sc.nextInt() - 1; } long[] b = new long[N / 64 + 1]; for (int i = 0; i < N; i++) { int x = sc.nextInt(); if ( x == 1 ) b[i / 64] |= (1L << (i % 64)); } final int MAX = 100000; ArrayList[] pos = new ArrayList[MAX]; for (int i = 0; i < MAX; i++) { pos[i] = new ArrayList<>(); } for (int i = 0; i < N; i++) { pos[a[i]].add(i); } long[] ans = new long[(2 * N - 1)/64 + 1]; for (int i = 0; i < MAX; i++) { if ( pos[i].size() == 0 ) continue; long[] bs = new long[(2 * N - 1)/64 + 1]; for ( int x : pos[i] ) { int xo = x / 64; int xr = x % 64; for ( int j = 0 ; j <= N / 64 ; j++ ) { bs[j + xo] |= (b[j] << xr); if ( xr != 0 && j + xo + 1 < (2 * N - 1)/64 + 1 ) bs[j + xo + 1] |= (b[j] >>> (64 - xr)); } } for ( int j = 0 ; j < bs.length ; j++ ) { ans[j] ^= bs[j]; } } StringBuilder str = new StringBuilder(); for ( int i = 0 ; i < 2 * N - 1 ; i++ ) { if ( ((ans[i / 64] >>> (i % 64)) & 1L) == 1L ) { str.append("ODD\n"); } else { str.append("EVEN\n"); } } System.out.print(str.toString()); } class FastScanner { private final InputStream in; private final byte[] buf = new byte[1024]; private int ptr = 0; private int buflen = 0; FastScanner( InputStream source ) { this.in = source; } private boolean hasNextByte() { if ( ptr < buflen ) return true; else { ptr = 0; try { buflen = in.read(buf); } catch (IOException e) { e.printStackTrace(); } if ( buflen <= 0 ) return false; } return true; } private int readByte() { if ( hasNextByte() ) return buf[ptr++]; else return -1; } private boolean isPrintableChar( int c ) { return 33 <= c && c <= 126; } private boolean isNumeric( int c ) { return '0' <= c && c <= '9'; } private void skipToNextPrintableChar() { while ( hasNextByte() && !isPrintableChar(buf[ptr]) ) ptr++; } public boolean hasNext() { skipToNextPrintableChar(); return hasNextByte(); } public String next() { if ( !hasNext() ) throw new NoSuchElementException(); StringBuilder ret = new StringBuilder(); int b = readByte(); while ( isPrintableChar(b) ) { ret.appendCodePoint(b); b = readByte(); } return ret.toString(); } public long nextLong() { if ( !hasNext() ) throw new NoSuchElementException(); long ret = 0; int b = readByte(); boolean negative = false; if ( b == '-' ) { negative = true; if ( hasNextByte() ) b = readByte(); } if ( !isNumeric(b) ) throw new NumberFormatException(); while ( true ) { if ( isNumeric(b) ) ret = ret * 10 + b - '0'; else if ( b == -1 || !isPrintableChar(b) ) return negative ? -ret : ret; else throw new NumberFormatException(); b = readByte(); } } public int nextInt() { return (int)nextLong(); } public double nextDouble() { return Double.parseDouble(next()); } } }