import numpy as np
N = int(input())
a = np.array([a for a in map(int, input().split()) if a % 2 == 0])
b = (a % 3) * (a % 5)
print('APPROVED' if b.sum() == 0 else 'DENIED') import numpy as np numpy N = int(input()) N int(input()) int input() input a for a in map(int, input().split()) if a % 2 == 0 for a in map(int, input().split()) if a % 2 == 0 a map(int, input().split()) map int input().split() ().split () input split a % 2 == 0 a % 2 a 2 0 if a % 2 == 0 a a = np.array([a for a in map(int, input().split()) if a % 2 == 0]) a np.array([a for a in map(int, input().split()) if a % 2 == 0]) np.array np array [a for a in map(int, input().split()) if a % 2 == 0] b = (a % 3) * (a % 5) b (a % 3) * (a % 5) a % 3 a 3 a % 5 a 5 print('APPROVED' if b.sum() == 0 else 'DENIED') print 'APPROVED' if b.sum() == 0 else 'DENIED' b.sum() == 0 b.sum() b.sum b sum 0 'APPROVED' 'DENIED' a = np.array([a for a in map(int, input().split()) if a % 2 == 0]) np.array([a for a in map(int, input().split()) if a % 2 == 0]) a b = (a % 3) * (a % 5) (a % 3) * (a % 5) b N = int(input()) int(input()) N
import numpy as np
N = int(input())
a = np.array([a for a in map(int, input().split()) if a % 2 == 0])
b = (a % 3) * (a % 5)
print('APPROVED' if b.sum() == 0 else 'DENIED')
