import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		for (int i=0; i<N; i++) {
			int tmpA = sc.nextInt();
			if (tmpA%2 == 0) {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			}
		}
		
		System.out.println("APPROVED");

		sc.close();

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		for (int i=0; i<N; i++) {
			int tmpA = sc.nextInt();
			if (tmpA%2 == 0) {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			}
		}
		
		System.out.println("APPROVED");

		sc.close();

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

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		for (int i=0; i<N; i++) {
			int tmpA = sc.nextInt();
			if (tmpA%2 == 0) {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			}
		}
		
		System.out.println("APPROVED");

		sc.close();

	} main {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		for (int i=0; i<N; i++) {
			int tmpA = sc.nextInt();
			if (tmpA%2 == 0) {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			}
		}
		
		System.out.println("APPROVED");

		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc for (int i=0; i<N; i++) {
			int tmpA = sc.nextInt();
			if (tmpA%2 == 0) {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int tmpA = sc.nextInt();
			if (tmpA%2 == 0) {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			}
		} {
			int tmpA = sc.nextInt();
			if (tmpA%2 == 0) {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			}
		} int tmpA = sc.nextInt(); tmpA sc.nextInt() sc.nextInt sc if (tmpA%2 == 0) {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			} tmpA%2 == 0 tmpA%2 tmpA 2 0 {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			} if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				} tmpA % 5 == 0 || tmpA % 3 ==0 tmpA % 5 == 0 tmpA % 5 tmpA 5 0 tmpA % 3 ==0 tmpA % 3 tmpA 3 0 {
					System.out.println("DENIED");
					return ;
				} System.out.println("DENIED") System.out.println System.out System System.out "DENIED" return ; System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		for (int i=0; i<N; i++) {
			int tmpA = sc.nextInt();
			if (tmpA%2 == 0) {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			}
		}
		
		System.out.println("APPROVED");

		sc.close();

	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		for (int i=0; i<N; i++) {
			int tmpA = sc.nextInt();
			if (tmpA%2 == 0) {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			}
		}
		
		System.out.println("APPROVED");

		sc.close();

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		for (int i=0; i<N; i++) {
			int tmpA = sc.nextInt();
			if (tmpA%2 == 0) {
				if(tmpA % 5 == 0 || tmpA % 3 ==0);
				else {
					System.out.println("DENIED");
					return ;
				}
			}
		}
		
		System.out.println("APPROVED");

		sc.close();

	}
}