import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
	    int N = scanner.nextInt();
	    
	    for(int i=0;i<N;i++) {
		    int A = scanner.nextInt();
		    if(A%2==0 && A%3!=0 && A%5!=0) {
	    		System.out.println("DENIED");
	    		System.exit(0);
		    }
	    }
    	System.out.println("APPROVED");
	  
  		scanner.close();
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
	    int N = scanner.nextInt();
	    
	    for(int i=0;i<N;i++) {
		    int A = scanner.nextInt();
		    if(A%2==0 && A%3!=0 && A%5!=0) {
	    		System.out.println("DENIED");
	    		System.exit(0);
		    }
	    }
    	System.out.println("APPROVED");
	  
  		scanner.close();
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
	    int N = scanner.nextInt();
	    
	    for(int i=0;i<N;i++) {
		    int A = scanner.nextInt();
		    if(A%2==0 && A%3!=0 && A%5!=0) {
	    		System.out.println("DENIED");
	    		System.exit(0);
		    }
	    }
    	System.out.println("APPROVED");
	  
  		scanner.close();
	} main {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
	    int N = scanner.nextInt();
	    
	    for(int i=0;i<N;i++) {
		    int A = scanner.nextInt();
		    if(A%2==0 && A%3!=0 && A%5!=0) {
	    		System.out.println("DENIED");
	    		System.exit(0);
		    }
	    }
    	System.out.println("APPROVED");
	  
  		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner for(int i=0;i<N;i++) {
		    int A = scanner.nextInt();
		    if(A%2==0 && A%3!=0 && A%5!=0) {
	    		System.out.println("DENIED");
	    		System.exit(0);
		    }
	    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
		    int A = scanner.nextInt();
		    if(A%2==0 && A%3!=0 && A%5!=0) {
	    		System.out.println("DENIED");
	    		System.exit(0);
		    }
	    } {
		    int A = scanner.nextInt();
		    if(A%2==0 && A%3!=0 && A%5!=0) {
	    		System.out.println("DENIED");
	    		System.exit(0);
		    }
	    } int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner if(A%2==0 && A%3!=0 && A%5!=0) {
	    		System.out.println("DENIED");
	    		System.exit(0);
		    } A%2==0 && A%3!=0 && A%5!=0 A%2==0 && A%3!=0 && A%5!=0 A%2==0 A%2 A 2 0 A%3!=0 A%3 A 3 0 A%5!=0 A%5 A 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" scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
	    int N = scanner.nextInt();
	    
	    for(int i=0;i<N;i++) {
		    int A = scanner.nextInt();
		    if(A%2==0 && A%3!=0 && A%5!=0) {
	    		System.out.println("DENIED");
	    		System.exit(0);
		    }
	    }
    	System.out.println("APPROVED");
	  
  		scanner.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
	    int N = scanner.nextInt();
	    
	    for(int i=0;i<N;i++) {
		    int A = scanner.nextInt();
		    if(A%2==0 && A%3!=0 && A%5!=0) {
	    		System.out.println("DENIED");
	    		System.exit(0);
		    }
	    }
    	System.out.println("APPROVED");
	  
  		scanner.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
	    int N = scanner.nextInt();
	    
	    for(int i=0;i<N;i++) {
		    int A = scanner.nextInt();
		    if(A%2==0 && A%3!=0 && A%5!=0) {
	    		System.out.println("DENIED");
	    		System.exit(0);
		    }
	    }
    	System.out.println("APPROVED");
	  
  		scanner.close();
	}

}