import java.util.Scanner;

public class Main {

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int check = 0;
        int num1 = scan.nextInt();

        for(int i = 0; i < num1; i++){
            int num2 = scan.nextInt();

            if(num2 % 2 == 0){
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            }
        }


        if(check == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int check = 0;
        int num1 = scan.nextInt();

        for(int i = 0; i < num1; i++){
            int num2 = scan.nextInt();

            if(num2 % 2 == 0){
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            }
        }


        if(check == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
    }
} Main public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int check = 0;
        int num1 = scan.nextInt();

        for(int i = 0; i < num1; i++){
            int num2 = scan.nextInt();

            if(num2 % 2 == 0){
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            }
        }


        if(check == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int check = 0;
        int num1 = scan.nextInt();

        for(int i = 0; i < num1; i++){
            int num2 = scan.nextInt();

            if(num2 % 2 == 0){
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            }
        }


        if(check == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int check = 0; check 0 int num1 = scan.nextInt(); num1 scan.nextInt() scan.nextInt scan for(int i = 0; i < num1; i++){
            int num2 = scan.nextInt();

            if(num2 % 2 == 0){
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            }
        } int i = 0; int i = 0; i 0 i < num1 i num1 i++ i++ i {
            int num2 = scan.nextInt();

            if(num2 % 2 == 0){
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            }
        } {
            int num2 = scan.nextInt();

            if(num2 % 2 == 0){
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            }
        } int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan if(num2 % 2 == 0){
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            } num2 % 2 == 0 num2 % 2 num2 2 0 {
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            } if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                } num2 % 3 != 0 && num2 % 5 != 0 num2 % 3 != 0 num2 % 3 num2 3 0 num2 % 5 != 0 num2 % 5 num2 5 0 {
                    check = 1;
                } check = 1 check 1 if(check == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        } check == 0 check 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 scan = new Scanner(System.in);
        int check = 0;
        int num1 = scan.nextInt();

        for(int i = 0; i < num1; i++){
            int num2 = scan.nextInt();

            if(num2 % 2 == 0){
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            }
        }


        if(check == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
    }
} public class Main {

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int check = 0;
        int num1 = scan.nextInt();

        for(int i = 0; i < num1; i++){
            int num2 = scan.nextInt();

            if(num2 % 2 == 0){
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            }
        }


        if(check == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int check = 0;
        int num1 = scan.nextInt();

        for(int i = 0; i < num1; i++){
            int num2 = scan.nextInt();

            if(num2 % 2 == 0){
                if(num2 % 3 != 0 && num2 % 5 != 0){
                    check = 1;
                }
            }
        }


        if(check == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
    }
}
