import java.util.Scanner;

public class Main {
	public static int N;
	public static int[] A;

	public static void main(String[] args) {
		init();
		boolean ans = true;
		for (int i = 0; i < A.length; i++) {
			if ((A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0)) {
				System.out.println("DENIED");
				ans = false;
				break;
			}
		}
		if (ans) {
			System.out.println("APPROVED");
		}
	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			A = new int[N];
			for (int i = 0; i < N; i++) {
				A[i] = sc.nextInt();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static int N;
	public static int[] A;

	public static void main(String[] args) {
		init();
		boolean ans = true;
		for (int i = 0; i < A.length; i++) {
			if ((A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0)) {
				System.out.println("DENIED");
				ans = false;
				break;
			}
		}
		if (ans) {
			System.out.println("APPROVED");
		}
	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			A = new int[N];
			for (int i = 0; i < N; i++) {
				A[i] = sc.nextInt();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main public static int N; N public static int[] A; A public static void main(String[] args) {
		init();
		boolean ans = true;
		for (int i = 0; i < A.length; i++) {
			if ((A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0)) {
				System.out.println("DENIED");
				ans = false;
				break;
			}
		}
		if (ans) {
			System.out.println("APPROVED");
		}
	} main {
		init();
		boolean ans = true;
		for (int i = 0; i < A.length; i++) {
			if ((A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0)) {
				System.out.println("DENIED");
				ans = false;
				break;
			}
		}
		if (ans) {
			System.out.println("APPROVED");
		}
	} init() init boolean ans = true; ans true for (int i = 0; i < A.length; i++) {
			if ((A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0)) {
				System.out.println("DENIED");
				ans = false;
				break;
			}
		} int i = 0; int i = 0; i 0 i < A.length i A.length A A.length i++ i++ i {
			if ((A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0)) {
				System.out.println("DENIED");
				ans = false;
				break;
			}
		} {
			if ((A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0)) {
				System.out.println("DENIED");
				ans = false;
				break;
			}
		} if ((A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0)) {
				System.out.println("DENIED");
				ans = false;
				break;
			} (A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0) (A[i] % 2 == 0) A[i] % 2 A[i] A i 2 0 (A[i] % 3 != 0 && A[i] % 5 != 0) A[i] % 3 != 0 A[i] % 3 A[i] A i 3 0 A[i] % 5 != 0 A[i] % 5 A[i] A i 5 0 {
				System.out.println("DENIED");
				ans = false;
				break;
			} System.out.println("DENIED") System.out.println System.out System System.out "DENIED" ans = false ans false break; if (ans) {
			System.out.println("APPROVED");
		} ans {
			System.out.println("APPROVED");
		} System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" String[] args args public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			A = new int[N];
			for (int i = 0; i < N; i++) {
				A[i] = sc.nextInt();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	} init {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			A = new int[N];
			for (int i = 0; i < N; i++) {
				A[i] = sc.nextInt();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) try {
			N = sc.nextInt();
			A = new int[N];
			for (int i = 0; i < N; i++) {
				A[i] = sc.nextInt();
			}
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			N = sc.nextInt();
			A = new int[N];
			for (int i = 0; i < N; i++) {
				A[i] = sc.nextInt();
			}
		} N = sc.nextInt() N sc.nextInt() sc.nextInt sc A = new int[N] A new int[N] N for (int i = 0; i < N; i++) {
				A[i] = sc.nextInt();
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				A[i] = sc.nextInt();
			} {
				A[i] = sc.nextInt();
			} A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc public class Main {
	public static int N;
	public static int[] A;

	public static void main(String[] args) {
		init();
		boolean ans = true;
		for (int i = 0; i < A.length; i++) {
			if ((A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0)) {
				System.out.println("DENIED");
				ans = false;
				break;
			}
		}
		if (ans) {
			System.out.println("APPROVED");
		}
	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			A = new int[N];
			for (int i = 0; i < N; i++) {
				A[i] = sc.nextInt();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} public class Main {
	public static int N;
	public static int[] A;

	public static void main(String[] args) {
		init();
		boolean ans = true;
		for (int i = 0; i < A.length; i++) {
			if ((A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0)) {
				System.out.println("DENIED");
				ans = false;
				break;
			}
		}
		if (ans) {
			System.out.println("APPROVED");
		}
	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			A = new int[N];
			for (int i = 0; i < N; i++) {
				A[i] = sc.nextInt();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static int N;
	public static int[] A;

	public static void main(String[] args) {
		init();
		boolean ans = true;
		for (int i = 0; i < A.length; i++) {
			if ((A[i] % 2 == 0) && (A[i] % 3 != 0 && A[i] % 5 != 0)) {
				System.out.println("DENIED");
				ans = false;
				break;
			}
		}
		if (ans) {
			System.out.println("APPROVED");
		}
	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			A = new int[N];
			for (int i = 0; i < N; i++) {
				A[i] = sc.nextInt();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
