import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        boolean c = true;

        for(int i = 0; i < n ;i++){
            int k = scan.nextInt();
            if(k % 2 == 0 && !(k % 3 == 0 || k % 5 == 0)) c = false;
        }
        scan.close();

        if(c) System.out.println("APPROVED");
        else System.out.println("DENIED");
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        boolean c = true;

        for(int i = 0; i < n ;i++){
            int k = scan.nextInt();
            if(k % 2 == 0 && !(k % 3 == 0 || k % 5 == 0)) c = false;
        }
        scan.close();

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

        for(int i = 0; i < n ;i++){
            int k = scan.nextInt();
            if(k % 2 == 0 && !(k % 3 == 0 || k % 5 == 0)) c = false;
        }
        scan.close();

        if(c) System.out.println("APPROVED");
        else System.out.println("DENIED");
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        boolean c = true;

        for(int i = 0; i < n ;i++){
            int k = scan.nextInt();
            if(k % 2 == 0 && !(k % 3 == 0 || k % 5 == 0)) c = false;
        }
        scan.close();

        if(c) System.out.println("APPROVED");
        else System.out.println("DENIED");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan boolean c = true; c true for(int i = 0; i < n ;i++){
            int k = scan.nextInt();
            if(k % 2 == 0 && !(k % 3 == 0 || k % 5 == 0)) c = false;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int k = scan.nextInt();
            if(k % 2 == 0 && !(k % 3 == 0 || k % 5 == 0)) c = false;
        } {
            int k = scan.nextInt();
            if(k % 2 == 0 && !(k % 3 == 0 || k % 5 == 0)) c = false;
        } int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan if(k % 2 == 0 && !(k % 3 == 0 || k % 5 == 0)) c = false; k % 2 == 0 && !(k % 3 == 0 || k % 5 == 0) k % 2 == 0 k % 2 k 2 0 !(k % 3 == 0 || k % 5 == 0) (k % 3 == 0 || k % 5 == 0) k % 3 == 0 k % 3 k 3 0 k % 5 == 0 k % 5 k 5 0 c = false c false scan.close() scan.close scan if(c) System.out.println("APPROVED");
        else System.out.println("DENIED"); c System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" System.out.println("DENIED") System.out.println System.out System System.out "DENIED" String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        boolean c = true;

        for(int i = 0; i < n ;i++){
            int k = scan.nextInt();
            if(k % 2 == 0 && !(k % 3 == 0 || k % 5 == 0)) c = false;
        }
        scan.close();

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