import java.util.*;
public class Main {
	public static void main(String[] args){
		int flag = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		for(int j = 0 ;j<i ;j++){
			int a = sc.nextInt();
			if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			}
		}
		if(flag == 0){
				System.out.println("APPROVED");
			}else{
				System.out.println("DENIED");
			}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		int flag = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		for(int j = 0 ;j<i ;j++){
			int a = sc.nextInt();
			if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			}
		}
		if(flag == 0){
				System.out.println("APPROVED");
			}else{
				System.out.println("DENIED");
			}
	}
} Main public static void main(String[] args){
		int flag = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		for(int j = 0 ;j<i ;j++){
			int a = sc.nextInt();
			if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			}
		}
		if(flag == 0){
				System.out.println("APPROVED");
			}else{
				System.out.println("DENIED");
			}
	} main {
		int flag = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		for(int j = 0 ;j<i ;j++){
			int a = sc.nextInt();
			if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			}
		}
		if(flag == 0){
				System.out.println("APPROVED");
			}else{
				System.out.println("DENIED");
			}
	} int flag = 0; flag 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = sc.nextInt(); i sc.nextInt() sc.nextInt sc for(int j = 0 ;j<i ;j++){
			int a = sc.nextInt();
			if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			}
		} int j = 0 ; int j = 0 ; j 0 j<i j i j++ j++ j {
			int a = sc.nextInt();
			if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			}
		} {
			int a = sc.nextInt();
			if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			}
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			} a%2 == 0 a%2 a 2 0 {
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			} if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				} a%3 == 0 || a%5 == 0 a%3 == 0 a%3 a 3 0 a%5 == 0 a%5 a 5 0 {
				} {
					flag = 1;
				} flag = 1 flag 1 if(flag == 0){
				System.out.println("APPROVED");
			}else{
				System.out.println("DENIED");
			} flag == 0 flag 0 {
				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){
		int flag = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		for(int j = 0 ;j<i ;j++){
			int a = sc.nextInt();
			if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			}
		}
		if(flag == 0){
				System.out.println("APPROVED");
			}else{
				System.out.println("DENIED");
			}
	}
} public class Main {
	public static void main(String[] args){
		int flag = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		for(int j = 0 ;j<i ;j++){
			int a = sc.nextInt();
			if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			}
		}
		if(flag == 0){
				System.out.println("APPROVED");
			}else{
				System.out.println("DENIED");
			}
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		int flag = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		for(int j = 0 ;j<i ;j++){
			int a = sc.nextInt();
			if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			}
		}
		if(flag == 0){
				System.out.println("APPROVED");
			}else{
				System.out.println("DENIED");
			}
	}
}