import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int ansA = 0;
        int ansB = 0;
        String ans = "DENIED";
        int a[] = new int[num];
        for (int i = 0; i < num; i++) {
            a[i] = sc.nextInt();
            if(a[i] % 2 == 0){
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            }
        }
        if(ansA == ansB){
            ans = "APPROVED";
        }
        
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int ansA = 0;
        int ansB = 0;
        String ans = "DENIED";
        int a[] = new int[num];
        for (int i = 0; i < num; i++) {
            a[i] = sc.nextInt();
            if(a[i] % 2 == 0){
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            }
        }
        if(ansA == ansB){
            ans = "APPROVED";
        }
        
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int ansA = 0;
        int ansB = 0;
        String ans = "DENIED";
        int a[] = new int[num];
        for (int i = 0; i < num; i++) {
            a[i] = sc.nextInt();
            if(a[i] % 2 == 0){
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            }
        }
        if(ansA == ansB){
            ans = "APPROVED";
        }
        
        System.out.println(ans);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int ansA = 0;
        int ansB = 0;
        String ans = "DENIED";
        int a[] = new int[num];
        for (int i = 0; i < num; i++) {
            a[i] = sc.nextInt();
            if(a[i] % 2 == 0){
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            }
        }
        if(ansA == ansB){
            ans = "APPROVED";
        }
        
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int ansA = 0; ansA 0 int ansB = 0; ansB 0 String ans = "DENIED"; ans "DENIED" int a[] = new int[num]; a new int[num] num for (int i = 0; i < num; i++) {
            a[i] = sc.nextInt();
            if(a[i] % 2 == 0){
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            }
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            a[i] = sc.nextInt();
            if(a[i] % 2 == 0){
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            }
        } {
            a[i] = sc.nextInt();
            if(a[i] % 2 == 0){
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            }
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc if(a[i] % 2 == 0){
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            } a[i] % 2 == 0 a[i] % 2 a[i] a i 2 0 {
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            } ansA ++ ansA if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                } (a[i] % 3 == 0) || (a[i] % 5 == 0) (a[i] % 3 == 0) a[i] % 3 a[i] a i 3 0 (a[i] % 5 == 0) a[i] % 5 a[i] a i 5 0 {
                    ansB ++;
                } ansB ++ ansB if(ansA == ansB){
            ans = "APPROVED";
        } ansA == ansB ansA ansB {
            ans = "APPROVED";
        } ans = "APPROVED" ans "APPROVED" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int ansA = 0;
        int ansB = 0;
        String ans = "DENIED";
        int a[] = new int[num];
        for (int i = 0; i < num; i++) {
            a[i] = sc.nextInt();
            if(a[i] % 2 == 0){
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            }
        }
        if(ansA == ansB){
            ans = "APPROVED";
        }
        
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int ansA = 0;
        int ansB = 0;
        String ans = "DENIED";
        int a[] = new int[num];
        for (int i = 0; i < num; i++) {
            a[i] = sc.nextInt();
            if(a[i] % 2 == 0){
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            }
        }
        if(ansA == ansB){
            ans = "APPROVED";
        }
        
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int ansA = 0;
        int ansB = 0;
        String ans = "DENIED";
        int a[] = new int[num];
        for (int i = 0; i < num; i++) {
            a[i] = sc.nextInt();
            if(a[i] % 2 == 0){
                ansA ++;
                if((a[i] % 3 == 0) || (a[i] % 5 == 0)){
                    ansB ++;
                }
            }
        }
        if(ansA == ansB){
            ans = "APPROVED";
        }
        
        System.out.println(ans);
    }
}