import java.util.Scanner;

public class Main {

    public static void main(String []args){
        Scanner in = new Scanner(System.in);

        int n;
        n = in.nextInt();

        long[] array = new long[n];

        boolean flg = true;

        for(int i = 0;i<n; i++)
        {
            array[i] = in.nextLong();
            if(array[i]%2 == 0)
            {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            }
        }

        if(flg)
        {
            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 in = new Scanner(System.in);

        int n;
        n = in.nextInt();

        long[] array = new long[n];

        boolean flg = true;

        for(int i = 0;i<n; i++)
        {
            array[i] = in.nextLong();
            if(array[i]%2 == 0)
            {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            }
        }

        if(flg)
        {
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        }



    }

} Main public static void main(String []args){
        Scanner in = new Scanner(System.in);

        int n;
        n = in.nextInt();

        long[] array = new long[n];

        boolean flg = true;

        for(int i = 0;i<n; i++)
        {
            array[i] = in.nextLong();
            if(array[i]%2 == 0)
            {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            }
        }

        if(flg)
        {
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        }



    } main {
        Scanner in = new Scanner(System.in);

        int n;
        n = in.nextInt();

        long[] array = new long[n];

        boolean flg = true;

        for(int i = 0;i<n; i++)
        {
            array[i] = in.nextLong();
            if(array[i]%2 == 0)
            {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            }
        }

        if(flg)
        {
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        }



    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n; n n = in.nextInt() n in.nextInt() in.nextInt in long[] array = new long[n]; array new long[n] n boolean flg = true; flg true for(int i = 0;i<n; i++)
        {
            array[i] = in.nextLong();
            if(array[i]%2 == 0)
            {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            }
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            array[i] = in.nextLong();
            if(array[i]%2 == 0)
            {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            }
        } {
            array[i] = in.nextLong();
            if(array[i]%2 == 0)
            {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            }
        } array[i] = in.nextLong() array[i] array i in.nextLong() in.nextLong in if(array[i]%2 == 0)
            {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            } array[i]%2 == 0 array[i]%2 array[i] array i 2 0 {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            } if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                } (array[i]%3)*(array[i]%5) != 0 (array[i]%3)*(array[i]%5) (array[i]%3) array[i] array i 3 (array[i]%5) array[i] array i 5 0 {
                    flg = false;
                } flg = false flg false if(flg)
        {
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        } flg {
            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 in = new Scanner(System.in);

        int n;
        n = in.nextInt();

        long[] array = new long[n];

        boolean flg = true;

        for(int i = 0;i<n; i++)
        {
            array[i] = in.nextLong();
            if(array[i]%2 == 0)
            {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            }
        }

        if(flg)
        {
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        }



    }

} public class Main {

    public static void main(String []args){
        Scanner in = new Scanner(System.in);

        int n;
        n = in.nextInt();

        long[] array = new long[n];

        boolean flg = true;

        for(int i = 0;i<n; i++)
        {
            array[i] = in.nextLong();
            if(array[i]%2 == 0)
            {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            }
        }

        if(flg)
        {
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        }



    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String []args){
        Scanner in = new Scanner(System.in);

        int n;
        n = in.nextInt();

        long[] array = new long[n];

        boolean flg = true;

        for(int i = 0;i<n; i++)
        {
            array[i] = in.nextLong();
            if(array[i]%2 == 0)
            {
                if((array[i]%3)*(array[i]%5) != 0)
                {
                    flg = false;
                }
            }
        }

        if(flg)
        {
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        }



    }

}
