import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());
		boolean aa = false;
		// 奇数のみのときtrue
		boolean bb = true;
		for(int i=0; i<N; i++) {
			int a = Integer.parseInt(sc.next());
			if(a % 2 == 0) {
				bb = false;
				if(a % 3 == 0 || a% 5==0) {
					aa = true;
				} else {
					aa = false;
					break;
				}
			}
		}
		System.out.println(aa || bb ? "APPROVED": "DENIED");

	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());
		boolean aa = false;
		// 奇数のみのときtrue
		boolean bb = true;
		for(int i=0; i<N; i++) {
			int a = Integer.parseInt(sc.next());
			if(a % 2 == 0) {
				bb = false;
				if(a % 3 == 0 || a% 5==0) {
					aa = true;
				} else {
					aa = false;
					break;
				}
			}
		}
		System.out.println(aa || bb ? "APPROVED": "DENIED");

	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());
		boolean aa = false;
		// 奇数のみのときtrue
		boolean bb = true;
		for(int i=0; i<N; i++) {
			int a = Integer.parseInt(sc.next());
			if(a % 2 == 0) {
				bb = false;
				if(a % 3 == 0 || a% 5==0) {
					aa = true;
				} else {
					aa = false;
					break;
				}
			}
		}
		System.out.println(aa || bb ? "APPROVED": "DENIED");

	} main {

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());
		boolean aa = false;
		// 奇数のみのときtrue
		boolean bb = true;
		for(int i=0; i<N; i++) {
			int a = Integer.parseInt(sc.next());
			if(a % 2 == 0) {
				bb = false;
				if(a % 3 == 0 || a% 5==0) {
					aa = true;
				} else {
					aa = false;
					break;
				}
			}
		}
		System.out.println(aa || bb ? "APPROVED": "DENIED");

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc boolean aa = false; aa false boolean bb = true; bb true for(int i=0; i<N; i++) {
			int a = Integer.parseInt(sc.next());
			if(a % 2 == 0) {
				bb = false;
				if(a % 3 == 0 || a% 5==0) {
					aa = true;
				} else {
					aa = false;
					break;
				}
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int a = Integer.parseInt(sc.next());
			if(a % 2 == 0) {
				bb = false;
				if(a % 3 == 0 || a% 5==0) {
					aa = true;
				} else {
					aa = false;
					break;
				}
			}
		} {
			int a = Integer.parseInt(sc.next());
			if(a % 2 == 0) {
				bb = false;
				if(a % 3 == 0 || a% 5==0) {
					aa = true;
				} else {
					aa = false;
					break;
				}
			}
		} int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(a % 2 == 0) {
				bb = false;
				if(a % 3 == 0 || a% 5==0) {
					aa = true;
				} else {
					aa = false;
					break;
				}
			} a % 2 == 0 a % 2 a 2 0 {
				bb = false;
				if(a % 3 == 0 || a% 5==0) {
					aa = true;
				} else {
					aa = false;
					break;
				}
			} bb = false bb false if(a % 3 == 0 || a% 5==0) {
					aa = true;
				} else {
					aa = false;
					break;
				} a % 3 == 0 || a% 5==0 a % 3 == 0 a % 3 a 3 0 a% 5==0 a% 5 a 5 0 {
					aa = true;
				} aa = true aa true {
					aa = false;
					break;
				} aa = false aa false break; System.out.println(aa || bb ? "APPROVED": "DENIED") System.out.println System.out System System.out aa || bb ? "APPROVED": "DENIED" aa || bb aa bb "APPROVED" "DENIED" String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());
		boolean aa = false;
		// 奇数のみのときtrue
		boolean bb = true;
		for(int i=0; i<N; i++) {
			int a = Integer.parseInt(sc.next());
			if(a % 2 == 0) {
				bb = false;
				if(a % 3 == 0 || a% 5==0) {
					aa = true;
				} else {
					aa = false;
					break;
				}
			}
		}
		System.out.println(aa || bb ? "APPROVED": "DENIED");

	}
}
