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