N = input()
ints = (i for i in map(int, input().split()) if i % 2 == 0)
ints = (i % 3 == 0 or i % 5 == 0 for i in ints)
print('APPROVED' if all(ints) else 'DENIED') N = input() N input() input i for i in map(int, input().split()) if i % 2 == 0 for i in map(int, input().split()) if i % 2 == 0 i map(int, input().split()) map int input().split() ().split () input split i % 2 == 0 i % 2 i 2 0 if i % 2 == 0 i ints = (i for i in map(int, input().split()) if i % 2 == 0) ints (i for i in map(int, input().split()) if i % 2 == 0) i % 3 == 0 or i % 5 == 0 for i in ints for i in ints i ints for i in ints i % 3 == 0 or i % 5 == 0 i % 3 == 0 i % 3 i 3 0 i % 5 == 0 i % 5 i 5 0 ints = (i % 3 == 0 or i % 5 == 0 for i in ints) ints (i % 3 == 0 or i % 5 == 0 for i in ints) print('APPROVED' if all(ints) else 'DENIED') print 'APPROVED' if all(ints) else 'DENIED' all(ints) all ints 'APPROVED' 'DENIED' ints = (i for i in map(int, input().split()) if i % 2 == 0) (i for i in map(int, input().split()) if i % 2 == 0) ints N = input() input() N ints = (i % 3 == 0 or i % 5 == 0 for i in ints) (i % 3 == 0 or i % 5 == 0 for i in ints) ints
N = input()
ints = (i for i in map(int, input().split()) if i % 2 == 0)
ints = (i % 3 == 0 or i % 5 == 0 for i in ints)
print('APPROVED' if all(ints) else 'DENIED')