N = int(input())
A = [int(n) for n in input().split() if int(n)%2==0]
c = 0
for a in A:
    if a%3==0 or a%5==0:
        c += 1
print('APPROVED' if c==len(A) else 'DENIED') N = int(input()) N int(input()) int input() input int(n) for n in input().split() if int(n)%2==0 for n in input().split() if int(n)%2==0 n input().split() ().split () input split int(n)%2==0 int(n)%2 int(n) int n 2 0 if int(n)%2==0 int(n) int n A = [int(n) for n in input().split() if int(n)%2==0] A [int(n) for n in input().split() if int(n)%2==0] c = 0 c 0 for a in A:
    if a%3==0 or a%5==0:
        c += 1 a A if a%3==0 or a%5==0:
        c += 1 a%3==0 or a%5==0 a%3==0 a%3 a 3 0 a%5==0 a%5 a 5 0 c += 1 c 1 print('APPROVED' if c==len(A) else 'DENIED') print 'APPROVED' if c==len(A) else 'DENIED' c==len(A) c len(A) len A 'APPROVED' 'DENIED' A = [int(n) for n in input().split() if int(n)%2==0] [int(n) for n in input().split() if int(n)%2==0] A c = 0 0 c c += 1 1 c N = int(input()) int(input()) N
N = int(input())
A = [int(n) for n in input().split() if int(n)%2==0]
c = 0
for a in A:
    if a%3==0 or a%5==0:
        c += 1
print('APPROVED' if c==len(A) else 'DENIED')
