import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt(),buff;
		for(int i=0;i<n;i++) {
			buff=sc.nextInt();
			if(buff%2==0) {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			}
		}
		System.out.println("APPROVED");

	}
}
 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(),buff;
		for(int i=0;i<n;i++) {
			buff=sc.nextInt();
			if(buff%2==0) {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			}
		}
		System.out.println("APPROVED");

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt(),buff;
		for(int i=0;i<n;i++) {
			buff=sc.nextInt();
			if(buff%2==0) {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			}
		}
		System.out.println("APPROVED");

	} main {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt(),buff;
		for(int i=0;i<n;i++) {
			buff=sc.nextInt();
			if(buff%2==0) {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			}
		}
		System.out.println("APPROVED");

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt() n sc.nextInt() sc.nextInt sc buff; buff for(int i=0;i<n;i++) {
			buff=sc.nextInt();
			if(buff%2==0) {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			buff=sc.nextInt();
			if(buff%2==0) {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			}
		} {
			buff=sc.nextInt();
			if(buff%2==0) {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			}
		} buff=sc.nextInt() buff sc.nextInt() sc.nextInt sc if(buff%2==0) {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			} buff%2==0 buff%2 buff 2 0 {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			} if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				} buff%3==0 || buff%5==0 buff%3==0 buff%3 buff 3 0 buff%5==0 buff%5 buff 5 0 {
				} {
					System.out.println("DENIED");
					System.exit(0);
				} System.out.println("DENIED") System.out.println System.out System System.out "DENIED" System.exit(0) System.exit System 0 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) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt(),buff;
		for(int i=0;i<n;i++) {
			buff=sc.nextInt();
			if(buff%2==0) {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			}
		}
		System.out.println("APPROVED");

	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt(),buff;
		for(int i=0;i<n;i++) {
			buff=sc.nextInt();
			if(buff%2==0) {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			}
		}
		System.out.println("APPROVED");

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt(),buff;
		for(int i=0;i<n;i++) {
			buff=sc.nextInt();
			if(buff%2==0) {
				if(buff%3==0 || buff%5==0) {
				}else {
					System.out.println("DENIED");
					System.exit(0);
				}
			}
		}
		System.out.println("APPROVED");

	}
}

