def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

n = i()
a = intl()

for i in range(n):
	if a[i]%2 == 0:
		if a[i]%3 != 0 and a[i]%5 !=0:
			print("DENIED")
			exit()
print("APPROVED") def i():
	return int(input()) i return int(input()) int(input()) int input() input def i2():
	return map(int,input().split()) i2 return map(int,input().split()) map(int,input().split()) map int input().split() ().split () input split def s():
	return str(input()) s return str(input()) str(input()) str input() input def l():
	return list(input()) l return list(input()) list(input()) list input() input def intl():
	return list(int(k) for k in input().split()) intl return list(int(k) for k in input().split()) list(int(k) for k in input().split()) list int(k) int k n = i() n i() i a = intl() a intl() intl for i in range(n):
	if a[i]%2 == 0:
		if a[i]%3 != 0 and a[i]%5 !=0:
			print("DENIED")
			exit() i range(n) range n if a[i]%2 == 0:
		if a[i]%3 != 0 and a[i]%5 !=0:
			print("DENIED")
			exit() a[i]%2 == 0 a[i]%2 a[i] a i 2 0 if a[i]%3 != 0 and a[i]%5 !=0:
			print("DENIED")
			exit() a[i]%3 != 0 and a[i]%5 !=0 a[i]%3 != 0 a[i]%3 a[i] a i 3 0 a[i]%5 !=0 a[i]%5 a[i] a i 5 0 print("DENIED") print "DENIED" exit() exit print("APPROVED") print "APPROVED" def i():
	return int(input()) def i():
	return int(input()) i a = intl() intl() a def l():
	return list(input()) def l():
	return list(input()) l def i2():
	return map(int,input().split()) def i2():
	return map(int,input().split()) i2 def intl():
	return list(int(k) for k in input().split()) def intl():
	return list(int(k) for k in input().split()) intl n = i() i() n def s():
	return str(input()) def s():
	return str(input()) s
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

n = i()
a = intl()

for i in range(n):
	if a[i]%2 == 0:
		if a[i]%3 != 0 and a[i]%5 !=0:
			print("DENIED")
			exit()
print("APPROVED")