n = int(input())
aa = [int(i) for i in input().split()]
flg = True
for a in aa:
	if a % 2 == 0:
		if a % 3 != 0 and a % 5 != 0:
			flg = False
print('APPROVED' if flg else 'DENIED') n = int(input()) n int(input()) int input() input int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i aa = [int(i) for i in input().split()] aa [int(i) for i in input().split()] flg = True flg True for a in aa:
	if a % 2 == 0:
		if a % 3 != 0 and a % 5 != 0:
			flg = False a aa if a % 2 == 0:
		if a % 3 != 0 and a % 5 != 0:
			flg = False a % 2 == 0 a % 2 a 2 0 if a % 3 != 0 and a % 5 != 0:
			flg = False a % 3 != 0 and a % 5 != 0 a % 3 != 0 a % 3 a 3 0 a % 5 != 0 a % 5 a 5 0 flg = False flg False print('APPROVED' if flg else 'DENIED') print 'APPROVED' if flg else 'DENIED' flg 'APPROVED' 'DENIED' n = int(input()) int(input()) n flg = True True flg flg = False False flg aa = [int(i) for i in input().split()] [int(i) for i in input().split()] aa
n = int(input())
aa = [int(i) for i in input().split()]
flg = True
for a in aa:
	if a % 2 == 0:
		if a % 3 != 0 and a % 5 != 0:
			flg = False
print('APPROVED' if flg else 'DENIED')