n, *a = map(int, open(0).read().split())
print("DENIED" if sum((i % 3) * (i % 5) for i in a if i % 2 == 0) else "APPROVED") n, *a = map(int, open(0).read().split()) n map(int, open(0).read().split()) map int open(0).read().split() (0).read().split (0).read() (0).read (0) open 0 read split *a a print("DENIED" if sum((i % 3) * (i % 5) for i in a if i % 2 == 0) else "APPROVED") print "DENIED" if sum((i % 3) * (i % 5) for i in a if i % 2 == 0) else "APPROVED" sum((i % 3) * (i % 5) for i in a if i % 2 == 0) sum (i % 3) * (i % 5) i % 3 i 3 i % 5 i 5 "DENIED" "APPROVED" n, *a = map(int, open(0).read().split()) map(int, open(0).read().split()) n
n, *a = map(int, open(0).read().split())
print("DENIED" if sum((i % 3) * (i % 5) for i in a if i % 2 == 0) else "APPROVED")