
import java.util.*;



public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n, i, j;
        n = s.nextInt();
        int[] a = new int[n];
        for (j = 0; j < n; j++) {
            a[j] = s.nextInt();
        }

        int flag = 1;
        for (j = 0; j < n; j++){
            if ((a[j] % 2 == 0)) {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            }}

        if (flag == 0) {
            System.out.println("DENIED");

        }
        else{
            System.out.println("APPROVED");}
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n, i, j;
        n = s.nextInt();
        int[] a = new int[n];
        for (j = 0; j < n; j++) {
            a[j] = s.nextInt();
        }

        int flag = 1;
        for (j = 0; j < n; j++){
            if ((a[j] % 2 == 0)) {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            }}

        if (flag == 0) {
            System.out.println("DENIED");

        }
        else{
            System.out.println("APPROVED");}
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n, i, j;
        n = s.nextInt();
        int[] a = new int[n];
        for (j = 0; j < n; j++) {
            a[j] = s.nextInt();
        }

        int flag = 1;
        for (j = 0; j < n; j++){
            if ((a[j] % 2 == 0)) {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            }}

        if (flag == 0) {
            System.out.println("DENIED");

        }
        else{
            System.out.println("APPROVED");}
    } main {
        Scanner s = new Scanner(System.in);
        int n, i, j;
        n = s.nextInt();
        int[] a = new int[n];
        for (j = 0; j < n; j++) {
            a[j] = s.nextInt();
        }

        int flag = 1;
        for (j = 0; j < n; j++){
            if ((a[j] % 2 == 0)) {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            }}

        if (flag == 0) {
            System.out.println("DENIED");

        }
        else{
            System.out.println("APPROVED");}
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int n n i i j; j n = s.nextInt() n s.nextInt() s.nextInt s int[] a = new int[n]; a new int[n] n for (j = 0; j < n; j++) {
            a[j] = s.nextInt();
        } j = 0; j = 0 j 0 j < n j n j++ j++ j {
            a[j] = s.nextInt();
        } {
            a[j] = s.nextInt();
        } a[j] = s.nextInt() a[j] a j s.nextInt() s.nextInt s int flag = 1; flag 1 for (j = 0; j < n; j++){
            if ((a[j] % 2 == 0)) {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            }} j = 0; j = 0 j 0 j < n j n j++ j++ j {
            if ((a[j] % 2 == 0)) {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            }} {
            if ((a[j] % 2 == 0)) {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            }} if ((a[j] % 2 == 0)) {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            } (a[j] % 2 == 0) a[j] % 2 a[j] a j 2 0 {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            } if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                } a[j] % 3 == 0 || a[j] % 5 == 0 a[j] % 3 == 0 a[j] % 3 a[j] a j 3 0 a[j] % 5 == 0 a[j] % 5 a[j] a j 5 0 {
                    flag = 1;
                } flag = 1 flag 1 {
                    flag=0;
                    break;
                } flag=0 flag 0 break; if (flag == 0) {
            System.out.println("DENIED");

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

        } System.out.println("DENIED") System.out.println System.out System System.out "DENIED" {
            System.out.println("APPROVED");} System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n, i, j;
        n = s.nextInt();
        int[] a = new int[n];
        for (j = 0; j < n; j++) {
            a[j] = s.nextInt();
        }

        int flag = 1;
        for (j = 0; j < n; j++){
            if ((a[j] % 2 == 0)) {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            }}

        if (flag == 0) {
            System.out.println("DENIED");

        }
        else{
            System.out.println("APPROVED");}
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n, i, j;
        n = s.nextInt();
        int[] a = new int[n];
        for (j = 0; j < n; j++) {
            a[j] = s.nextInt();
        }

        int flag = 1;
        for (j = 0; j < n; j++){
            if ((a[j] % 2 == 0)) {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            }}

        if (flag == 0) {
            System.out.println("DENIED");

        }
        else{
            System.out.println("APPROVED");}
    }
} Main

import java.util.*;



public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n, i, j;
        n = s.nextInt();
        int[] a = new int[n];
        for (j = 0; j < n; j++) {
            a[j] = s.nextInt();
        }

        int flag = 1;
        for (j = 0; j < n; j++){
            if ((a[j] % 2 == 0)) {
                if (a[j] % 3 == 0 || a[j] % 5 == 0) {
                    flag = 1;
                }
                else
                {
                    flag=0;
                    break;
                }

            }}

        if (flag == 0) {
            System.out.println("DENIED");

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