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