N = int(input())
A = input().split()
num_even = 0
num_approved = 0

for i in range(N):
    if int(A[i]) % 2 == 0:
        num_even += 1
        if int(A[i]) % 3 == 0 or int(A[i]) % 5 == 0:
            num_approved += 1

if num_even == num_approved:
    print("APPROVED")
else:
    print("DENIED") N = int(input()) N int(input()) int input() input A = input().split() A input().split() ().split () input split num_even = 0 num_even 0 num_approved = 0 num_approved 0 for i in range(N):
    if int(A[i]) % 2 == 0:
        num_even += 1
        if int(A[i]) % 3 == 0 or int(A[i]) % 5 == 0:
            num_approved += 1 i range(N) range N if int(A[i]) % 2 == 0:
        num_even += 1
        if int(A[i]) % 3 == 0 or int(A[i]) % 5 == 0:
            num_approved += 1 int(A[i]) % 2 == 0 int(A[i]) % 2 int(A[i]) int A[i] A i 2 0 num_even += 1 num_even 1 if int(A[i]) % 3 == 0 or int(A[i]) % 5 == 0:
            num_approved += 1 int(A[i]) % 3 == 0 or int(A[i]) % 5 == 0 int(A[i]) % 3 == 0 int(A[i]) % 3 int(A[i]) int A[i] A i 3 0 int(A[i]) % 5 == 0 int(A[i]) % 5 int(A[i]) int A[i] A i 5 0 num_approved += 1 num_approved 1 if num_even == num_approved:
    print("APPROVED")
else:
    print("DENIED") num_even == num_approved num_even num_approved print("APPROVED") print "APPROVED" print("DENIED") print "DENIED" num_approved += 1 1 num_approved num_approved = 0 0 num_approved num_even = 0 0 num_even A = input().split() input().split() A num_even += 1 1 num_even N = int(input()) int(input()) N
N = int(input())
A = input().split()
num_even = 0
num_approved = 0

for i in range(N):
    if int(A[i]) % 2 == 0:
        num_even += 1
        if int(A[i]) % 3 == 0 or int(A[i]) % 5 == 0:
            num_approved += 1

if num_even == num_approved:
    print("APPROVED")
else:
    print("DENIED")
