n = int(input())
approved = all([i % 2 != 0 or i % 10 == 0 or i % 6 == 0 for i in map(int, input().split())])
print('APPROVED' if approved  else 'DENIED') n = int(input()) n int(input()) int input() input i % 2 != 0 or i % 10 == 0 or i % 6 == 0 for i in map(int, input().split()) for i in map(int, input().split()) i map(int, input().split()) map int input().split() ().split () input split for i in map(int, input().split()) i % 2 != 0 or i % 10 == 0 or i % 6 == 0 i % 2 != 0 or i % 10 == 0 i % 2 != 0 i % 2 i 2 0 i % 10 == 0 i % 10 i 10 0 i % 6 == 0 i % 6 i 6 0 approved = all([i % 2 != 0 or i % 10 == 0 or i % 6 == 0 for i in map(int, input().split())]) approved all([i % 2 != 0 or i % 10 == 0 or i % 6 == 0 for i in map(int, input().split())]) all [i % 2 != 0 or i % 10 == 0 or i % 6 == 0 for i in map(int, input().split())] print('APPROVED' if approved  else 'DENIED') print 'APPROVED' if approved  else 'DENIED' approved 'APPROVED' 'DENIED' approved = all([i % 2 != 0 or i % 10 == 0 or i % 6 == 0 for i in map(int, input().split())]) all([i % 2 != 0 or i % 10 == 0 or i % 6 == 0 for i in map(int, input().split())]) approved n = int(input()) int(input()) n
n = int(input())
approved = all([i % 2 != 0 or i % 10 == 0 or i % 6 == 0 for i in map(int, input().split())])
print('APPROVED' if approved  else 'DENIED')