import java.util.Scanner;

// https://atcoder.jp/contests/abc155/tasks/abc155_b
public class Main {

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

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] array = new int[N];
		for(int i=0;i<N;i++) {
			array[i] = sc.nextInt();
		}
		sc.close();

		boolean flag = true;
		for(int i=0;i<N;i++) {
			int n = array[i];
			if(n%2==0) {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			}
		}

		if(flag) {
			System.out.println("APPROVED");
		}else {
			System.out.println("DENIED");
		}



	}

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

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

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] array = new int[N];
		for(int i=0;i<N;i++) {
			array[i] = sc.nextInt();
		}
		sc.close();

		boolean flag = true;
		for(int i=0;i<N;i++) {
			int n = array[i];
			if(n%2==0) {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			}
		}

		if(flag) {
			System.out.println("APPROVED");
		}else {
			System.out.println("DENIED");
		}



	}

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

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] array = new int[N];
		for(int i=0;i<N;i++) {
			array[i] = sc.nextInt();
		}
		sc.close();

		boolean flag = true;
		for(int i=0;i<N;i++) {
			int n = array[i];
			if(n%2==0) {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			}
		}

		if(flag) {
			System.out.println("APPROVED");
		}else {
			System.out.println("DENIED");
		}



	} main {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] array = new int[N];
		for(int i=0;i<N;i++) {
			array[i] = sc.nextInt();
		}
		sc.close();

		boolean flag = true;
		for(int i=0;i<N;i++) {
			int n = array[i];
			if(n%2==0) {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			}
		}

		if(flag) {
			System.out.println("APPROVED");
		}else {
			System.out.println("DENIED");
		}



	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] array = new int[N]; array new int[N] N for(int i=0;i<N;i++) {
			array[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			array[i] = sc.nextInt();
		} {
			array[i] = sc.nextInt();
		} array[i] = sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc sc.close() sc.close sc boolean flag = true; flag true for(int i=0;i<N;i++) {
			int n = array[i];
			if(n%2==0) {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int n = array[i];
			if(n%2==0) {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			}
		} {
			int n = array[i];
			if(n%2==0) {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			}
		} int n = array[i]; n array[i] array i if(n%2==0) {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			} n%2==0 n%2 n 2 0 {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			} if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				} (n%3==0)||(n%5==0) (n%3==0) n%3 n 3 0 (n%5==0) n%5 n 5 0 {

				} {
					flag = false;
				} flag = false flag false if(flag) {
			System.out.println("APPROVED");
		}else {
			System.out.println("DENIED");
		} flag {
			System.out.println("APPROVED");
		} System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" {
			System.out.println("DENIED");
		} System.out.println("DENIED") System.out.println System.out System System.out "DENIED" String[] args args public class Main {

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

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] array = new int[N];
		for(int i=0;i<N;i++) {
			array[i] = sc.nextInt();
		}
		sc.close();

		boolean flag = true;
		for(int i=0;i<N;i++) {
			int n = array[i];
			if(n%2==0) {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			}
		}

		if(flag) {
			System.out.println("APPROVED");
		}else {
			System.out.println("DENIED");
		}



	}

} public class Main {

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

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] array = new int[N];
		for(int i=0;i<N;i++) {
			array[i] = sc.nextInt();
		}
		sc.close();

		boolean flag = true;
		for(int i=0;i<N;i++) {
			int n = array[i];
			if(n%2==0) {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			}
		}

		if(flag) {
			System.out.println("APPROVED");
		}else {
			System.out.println("DENIED");
		}



	}

} Main
import java.util.Scanner;

// https://atcoder.jp/contests/abc155/tasks/abc155_b
public class Main {

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

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] array = new int[N];
		for(int i=0;i<N;i++) {
			array[i] = sc.nextInt();
		}
		sc.close();

		boolean flag = true;
		for(int i=0;i<N;i++) {
			int n = array[i];
			if(n%2==0) {
				if((n%3==0)||(n%5==0)) {

				}else {
					flag = false;
				}
			}
		}

		if(flag) {
			System.out.println("APPROVED");
		}else {
			System.out.println("DENIED");
		}



	}

}
