import numpy as np

N = int(input())
A = list(map(int,input().split()))

a = np.array(A)

odd = a[a%2 == 0]

if np.sum((odd%3 != 0)&(odd%5 != 0)) == 0:
    print('APPROVED')
else:
    print('DENIED') import numpy as np numpy N = int(input()) N int(input()) int input() input A = list(map(int,input().split())) A list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split a = np.array(A) a np.array(A) np.array np array A odd = a[a%2 == 0] odd a[a%2 == 0] a a%2 == 0 a%2 a 2 0 if np.sum((odd%3 != 0)&(odd%5 != 0)) == 0:
    print('APPROVED')
else:
    print('DENIED') np.sum((odd%3 != 0)&(odd%5 != 0)) == 0 np.sum((odd%3 != 0)&(odd%5 != 0)) np.sum np sum (odd%3 != 0)&(odd%5 != 0) odd%3 != 0 odd%3 odd 3 0 odd%5 != 0 odd%5 odd 5 0 0 print('APPROVED') print 'APPROVED' print('DENIED') print 'DENIED' odd = a[a%2 == 0] a[a%2 == 0] odd N = int(input()) int(input()) N A = list(map(int,input().split())) list(map(int,input().split())) A a = np.array(A) np.array(A) a
import numpy as np

N = int(input())
A = list(map(int,input().split()))

a = np.array(A)

odd = a[a%2 == 0]

if np.sum((odd%3 != 0)&(odd%5 != 0)) == 0:
    print('APPROVED')
else:
    print('DENIED')
