counts_number = int(input())
tmp_map = map(int, input().split())
num_list = list(tmp_map)
even_of_num_list = []
approve_counts = 0

for i in num_list:
    if i % 2 == 0:
        even_of_num_list.append(i)

for x in even_of_num_list:
    if x % 3 == 0 or x % 5 == 0:
        approve_counts += 1

if approve_counts == len(even_of_num_list):
    print('APPROVED')
else:
    print('DENIED') counts_number = int(input()) counts_number int(input()) int input() input tmp_map = map(int, input().split()) tmp_map map(int, input().split()) map int input().split() ().split () input split num_list = list(tmp_map) num_list list(tmp_map) list tmp_map even_of_num_list = [] even_of_num_list [] approve_counts = 0 approve_counts 0 for i in num_list:
    if i % 2 == 0:
        even_of_num_list.append(i) i num_list if i % 2 == 0:
        even_of_num_list.append(i) i % 2 == 0 i % 2 i 2 0 even_of_num_list.append(i) even_of_num_list.append even_of_num_list append i for x in even_of_num_list:
    if x % 3 == 0 or x % 5 == 0:
        approve_counts += 1 x even_of_num_list if x % 3 == 0 or x % 5 == 0:
        approve_counts += 1 x % 3 == 0 or x % 5 == 0 x % 3 == 0 x % 3 x 3 0 x % 5 == 0 x % 5 x 5 0 approve_counts += 1 approve_counts 1 if approve_counts == len(even_of_num_list):
    print('APPROVED')
else:
    print('DENIED') approve_counts == len(even_of_num_list) approve_counts len(even_of_num_list) len even_of_num_list print('APPROVED') print 'APPROVED' print('DENIED') print 'DENIED' approve_counts = 0 0 approve_counts even_of_num_list = [] [] even_of_num_list counts_number = int(input()) int(input()) counts_number approve_counts += 1 1 approve_counts num_list = list(tmp_map) list(tmp_map) num_list tmp_map = map(int, input().split()) map(int, input().split()) tmp_map
counts_number = int(input())
tmp_map = map(int, input().split())
num_list = list(tmp_map)
even_of_num_list = []
approve_counts = 0

for i in num_list:
    if i % 2 == 0:
        even_of_num_list.append(i)

for x in even_of_num_list:
    if x % 3 == 0 or x % 5 == 0:
        approve_counts += 1

if approve_counts == len(even_of_num_list):
    print('APPROVED')
else:
    print('DENIED')