import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int n =sc.nextInt();
	boolean a=true;
	for(int i=0;i<n;i++) {
		int tmp=sc.nextInt();
		if(tmp%2==0) {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		}
	}
	if(a) {
		p("APPROVED");
	}else {
		p("DENIED");
	}
	
	
	}
} import java.util.Scanner; Scanner java.util public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int n =sc.nextInt();
	boolean a=true;
	for(int i=0;i<n;i++) {
		int tmp=sc.nextInt();
		if(tmp%2==0) {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		}
	}
	if(a) {
		p("APPROVED");
	}else {
		p("DENIED");
	}
	
	
	}
} Main private static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static void p(String ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans String ans ans static void p(int ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans int ans ans static void p(long ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans long ans ans public static void main(String[] args) {
	int n =sc.nextInt();
	boolean a=true;
	for(int i=0;i<n;i++) {
		int tmp=sc.nextInt();
		if(tmp%2==0) {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		}
	}
	if(a) {
		p("APPROVED");
	}else {
		p("DENIED");
	}
	
	
	} main {
	int n =sc.nextInt();
	boolean a=true;
	for(int i=0;i<n;i++) {
		int tmp=sc.nextInt();
		if(tmp%2==0) {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		}
	}
	if(a) {
		p("APPROVED");
	}else {
		p("DENIED");
	}
	
	
	} int n =sc.nextInt(); n sc.nextInt() sc.nextInt sc boolean a=true; a true for(int i=0;i<n;i++) {
		int tmp=sc.nextInt();
		if(tmp%2==0) {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		}
	} int i=0; int i=0; i 0 i<n i n i++ i++ i {
		int tmp=sc.nextInt();
		if(tmp%2==0) {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		}
	} {
		int tmp=sc.nextInt();
		if(tmp%2==0) {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		}
	} int tmp=sc.nextInt(); tmp sc.nextInt() sc.nextInt sc if(tmp%2==0) {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		} tmp%2==0 tmp%2 tmp 2 0 {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		} if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			} tmp%3==0||tmp%5==0 tmp%3==0 tmp%3 tmp 3 0 tmp%5==0 tmp%5 tmp 5 0 {
				
			} {
				a=false;
			} a=false a false if(a) {
		p("APPROVED");
	}else {
		p("DENIED");
	} a {
		p("APPROVED");
	} p("APPROVED") p "APPROVED" {
		p("DENIED");
	} p("DENIED") p "DENIED" String[] args args public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int n =sc.nextInt();
	boolean a=true;
	for(int i=0;i<n;i++) {
		int tmp=sc.nextInt();
		if(tmp%2==0) {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		}
	}
	if(a) {
		p("APPROVED");
	}else {
		p("DENIED");
	}
	
	
	}
} public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int n =sc.nextInt();
	boolean a=true;
	for(int i=0;i<n;i++) {
		int tmp=sc.nextInt();
		if(tmp%2==0) {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		}
	}
	if(a) {
		p("APPROVED");
	}else {
		p("DENIED");
	}
	
	
	}
} Main
import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int n =sc.nextInt();
	boolean a=true;
	for(int i=0;i<n;i++) {
		int tmp=sc.nextInt();
		if(tmp%2==0) {
			if(tmp%3==0||tmp%5==0) {
				
			}else {
				a=false;
			}
		}
	}
	if(a) {
		p("APPROVED");
	}else {
		p("DENIED");
	}
	
	
	}
}