import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		int N = scanner.nextInt();

		boolean flag = true; //ループの初期値

		for (int i = 0; i < N; i++) {
			int A = scanner.nextInt();

			if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
				
				System.out.println("DENIED");
				flag = false;
				break;
			}
		}
		if (flag == true) {
			System.out.println("APPROVED");
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		int N = scanner.nextInt();

		boolean flag = true; //ループの初期値

		for (int i = 0; i < N; i++) {
			int A = scanner.nextInt();

			if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
				
				System.out.println("DENIED");
				flag = false;
				break;
			}
		}
		if (flag == true) {
			System.out.println("APPROVED");
		}
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		int N = scanner.nextInt();

		boolean flag = true; //ループの初期値

		for (int i = 0; i < N; i++) {
			int A = scanner.nextInt();

			if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
				
				System.out.println("DENIED");
				flag = false;
				break;
			}
		}
		if (flag == true) {
			System.out.println("APPROVED");
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		int N = scanner.nextInt();

		boolean flag = true; //ループの初期値

		for (int i = 0; i < N; i++) {
			int A = scanner.nextInt();

			if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
				
				System.out.println("DENIED");
				flag = false;
				break;
			}
		}
		if (flag == true) {
			System.out.println("APPROVED");
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner boolean flag = true; flag true for (int i = 0; i < N; i++) {
			int A = scanner.nextInt();

			if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
				
				System.out.println("DENIED");
				flag = false;
				break;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int A = scanner.nextInt();

			if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
				
				System.out.println("DENIED");
				flag = false;
				break;
			}
		} {
			int A = scanner.nextInt();

			if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
				
				System.out.println("DENIED");
				flag = false;
				break;
			}
		} int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
				
				System.out.println("DENIED");
				flag = false;
				break;
			} A % 2 == 0 && A % 3 != 0 && A % 5 != 0 A % 2 == 0 && A % 3 != 0 && A % 5 != 0 A % 2 == 0 A % 2 A 2 0 A % 3 != 0 A % 3 A 3 0 A % 5 != 0 A % 5 A 5 0 {
				
				System.out.println("DENIED");
				flag = false;
				break;
			} System.out.println("DENIED") System.out.println System.out System System.out "DENIED" flag = false flag false break; if (flag == true) {
			System.out.println("APPROVED");
		} flag == true flag true {
			System.out.println("APPROVED");
		} System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		int N = scanner.nextInt();

		boolean flag = true; //ループの初期値

		for (int i = 0; i < N; i++) {
			int A = scanner.nextInt();

			if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
				
				System.out.println("DENIED");
				flag = false;
				break;
			}
		}
		if (flag == true) {
			System.out.println("APPROVED");
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		int N = scanner.nextInt();

		boolean flag = true; //ループの初期値

		for (int i = 0; i < N; i++) {
			int A = scanner.nextInt();

			if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
				
				System.out.println("DENIED");
				flag = false;
				break;
			}
		}
		if (flag == true) {
			System.out.println("APPROVED");
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		int N = scanner.nextInt();

		boolean flag = true; //ループの初期値

		for (int i = 0; i < N; i++) {
			int A = scanner.nextInt();

			if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
				
				System.out.println("DENIED");
				flag = false;
				break;
			}
		}
		if (flag == true) {
			System.out.println("APPROVED");
		}
	}

}