import java.util.*;

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

public class Main {
    public static void main(String[] args){
        
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int num = 0;
        int sum = 0;
        
        for(int i=0; i<N; i++){
            
            num = scanner.nextInt();
            
            if(num %2 == 0){
                
                if(num %3 == 0|| num %5 == 0){
                }else{
                    sum = 1;
                    break;
                }
                
            }
            
        }
        
        if(sum==0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
        
    }
}
