N = int(input()) A = tuple(map(int,input().split())) B = int(''.join(input().split())[::-1],2) U = 10 ** 5 color_ind = [[] for _ in range(U + 1)] for i, x in enumerate(A): color_ind[x].append(i) dp = 0 for ind in color_ind: if not ind: continue x = 0 for i in ind: x |= B << i dp ^= x dp ^= (1 << (N + N)) answer = ('ODD' if x == '1' else 'EVEN' for x in bin(dp)[::-1][:N + N - 1]) print('\n'.join(answer))