_ = input()
A = [int(i) for i in input().split()]
result = {True: "APPROVED", False: "DENIED"}
print(result[all([a % 2 == 1 or (a % 3 == 0 or a % 5 == 0) for a in A])]) _ = input() _ 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 A = [int(i) for i in input().split()] A [int(i) for i in input().split()] result = {True: "APPROVED", False: "DENIED"} result {True: "APPROVED", False: "DENIED"} True True "APPROVED" False False "DENIED" a % 2 == 1 or (a % 3 == 0 or a % 5 == 0) for a in A for a in A a A for a in A a % 2 == 1 or (a % 3 == 0 or a % 5 == 0) a % 2 == 1 a % 2 a 2 1 a % 3 == 0 or a % 5 == 0 a % 3 == 0 a % 3 a 3 0 a % 5 == 0 a % 5 a 5 0 print(result[all([a % 2 == 1 or (a % 3 == 0 or a % 5 == 0) for a in A])]) print result[all([a % 2 == 1 or (a % 3 == 0 or a % 5 == 0) for a in A])] result all([a % 2 == 1 or (a % 3 == 0 or a % 5 == 0) for a in A]) all [a % 2 == 1 or (a % 3 == 0 or a % 5 == 0) for a in A] A = [int(i) for i in input().split()] [int(i) for i in input().split()] A _ = input() input() _ result = {True: "APPROVED", False: "DENIED"} {True: "APPROVED", False: "DENIED"} result
_ = input()
A = [int(i) for i in input().split()]
result = {True: "APPROVED", False: "DENIED"}
print(result[all([a % 2 == 1 or (a % 3 == 0 or a % 5 == 0) for a in A])])