import java.io.FileNotFoundException;
import java.util.Scanner;

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

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		boolean flg = true;
		for(int i=0;i<N;i++) {
			int x = sc.nextInt();
			if(x%2==0) {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			}
		}
		if(flg) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}

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

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		boolean flg = true;
		for(int i=0;i<N;i++) {
			int x = sc.nextInt();
			if(x%2==0) {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			}
		}
		if(flg) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}

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

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		boolean flg = true;
		for(int i=0;i<N;i++) {
			int x = sc.nextInt();
			if(x%2==0) {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			}
		}
		if(flg) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}

	} main {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		boolean flg = true;
		for(int i=0;i<N;i++) {
			int x = sc.nextInt();
			if(x%2==0) {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			}
		}
		if(flg) {
			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 boolean flg = true; flg true for(int i=0;i<N;i++) {
			int x = sc.nextInt();
			if(x%2==0) {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int x = sc.nextInt();
			if(x%2==0) {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			}
		} {
			int x = sc.nextInt();
			if(x%2==0) {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			}
		} int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc if(x%2==0) {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			} x%2==0 x%2 x 2 0 {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			} if(x%3!=0&&x%5!=0) {
					flg = false;
				} x%3!=0&&x%5!=0 x%3!=0 x%3 x 3 0 x%5!=0 x%5 x 5 0 {
					flg = false;
				} flg = false flg false if(flg) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		} flg {
			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) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		boolean flg = true;
		for(int i=0;i<N;i++) {
			int x = sc.nextInt();
			if(x%2==0) {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			}
		}
		if(flg) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}

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

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		boolean flg = true;
		for(int i=0;i<N;i++) {
			int x = sc.nextInt();
			if(x%2==0) {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			}
		}
		if(flg) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}

	}
} Main
import java.io.FileNotFoundException;
import java.util.Scanner;

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

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		boolean flg = true;
		for(int i=0;i<N;i++) {
			int x = sc.nextInt();
			if(x%2==0) {
				if(x%3!=0&&x%5!=0) {
					flg = false;
				}
			}
		}
		if(flg) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}

	}
}