import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int a[] = new int[size];
        int o = 0;
        int b = 0;

        for (int i=0; i<a.length; i++) {
            a[i] = sc.nextInt();
        }

        for (int k=0; k<a.length; k++) {
            if (a[k] % 2 == 0){
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            }
        }

        if (o == b) {
            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 sc = new Scanner(System.in);
        int size = sc.nextInt();
        int a[] = new int[size];
        int o = 0;
        int b = 0;

        for (int i=0; i<a.length; i++) {
            a[i] = sc.nextInt();
        }

        for (int k=0; k<a.length; k++) {
            if (a[k] % 2 == 0){
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            }
        }

        if (o == b) {
            System.out.println("APPROVED");
        }
        else {
            System.out.println("DENIED");
        }
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int a[] = new int[size];
        int o = 0;
        int b = 0;

        for (int i=0; i<a.length; i++) {
            a[i] = sc.nextInt();
        }

        for (int k=0; k<a.length; k++) {
            if (a[k] % 2 == 0){
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            }
        }

        if (o == b) {
            System.out.println("APPROVED");
        }
        else {
            System.out.println("DENIED");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int a[] = new int[size];
        int o = 0;
        int b = 0;

        for (int i=0; i<a.length; i++) {
            a[i] = sc.nextInt();
        }

        for (int k=0; k<a.length; k++) {
            if (a[k] % 2 == 0){
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            }
        }

        if (o == b) {
            System.out.println("APPROVED");
        }
        else {
            System.out.println("DENIED");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int size = sc.nextInt(); size sc.nextInt() sc.nextInt sc int a[] = new int[size]; a new int[size] size int o = 0; o 0 int b = 0; b 0 for (int i=0; i<a.length; i++) {
            a[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
            a[i] = sc.nextInt();
        } {
            a[i] = sc.nextInt();
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc for (int k=0; k<a.length; k++) {
            if (a[k] % 2 == 0){
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            }
        } int k=0; int k=0; k 0 k<a.length k a.length a a.length k++ k++ k {
            if (a[k] % 2 == 0){
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            }
        } {
            if (a[k] % 2 == 0){
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            }
        } if (a[k] % 2 == 0){
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            } a[k] % 2 == 0 a[k] % 2 a[k] a k 2 0 {
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            } o++ o if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                } a[k] % 3 == 0 || a[k] % 5 == 0 a[k] % 3 == 0 a[k] % 3 a[k] a k 3 0 a[k] % 5 == 0 a[k] % 5 a[k] a k 5 0 {
                b++;
                } b++ b if (o == b) {
            System.out.println("APPROVED");
        }
        else {
            System.out.println("DENIED");
        } o == b o b {
            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 sc = new Scanner(System.in);
        int size = sc.nextInt();
        int a[] = new int[size];
        int o = 0;
        int b = 0;

        for (int i=0; i<a.length; i++) {
            a[i] = sc.nextInt();
        }

        for (int k=0; k<a.length; k++) {
            if (a[k] % 2 == 0){
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            }
        }

        if (o == b) {
            System.out.println("APPROVED");
        }
        else {
            System.out.println("DENIED");
        }
    }
} public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int a[] = new int[size];
        int o = 0;
        int b = 0;

        for (int i=0; i<a.length; i++) {
            a[i] = sc.nextInt();
        }

        for (int k=0; k<a.length; k++) {
            if (a[k] % 2 == 0){
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            }
        }

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

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int size = sc.nextInt();
        int a[] = new int[size];
        int o = 0;
        int b = 0;

        for (int i=0; i<a.length; i++) {
            a[i] = sc.nextInt();
        }

        for (int k=0; k<a.length; k++) {
            if (a[k] % 2 == 0){
                o++;
                if (a[k] % 3 == 0 || a[k] % 5 == 0) {
                b++;
                }
            }
        }

        if (o == b) {
            System.out.println("APPROVED");
        }
        else {
            System.out.println("DENIED");
        }
    }
}
