import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();int time=0;
        boolean flag = true;
            while(flag&&time<n){
                int m = sc.nextInt();
                if(m%2==0){
                    if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    }
                }
                time++;
            }
        if(flag)
            System.out.println("APPROVED");
}} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();int time=0;
        boolean flag = true;
            while(flag&&time<n){
                int m = sc.nextInt();
                if(m%2==0){
                    if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    }
                }
                time++;
            }
        if(flag)
            System.out.println("APPROVED");
}} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();int time=0;
        boolean flag = true;
            while(flag&&time<n){
                int m = sc.nextInt();
                if(m%2==0){
                    if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    }
                }
                time++;
            }
        if(flag)
            System.out.println("APPROVED");
} main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();int time=0;
        boolean flag = true;
            while(flag&&time<n){
                int m = sc.nextInt();
                if(m%2==0){
                    if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    }
                }
                time++;
            }
        if(flag)
            System.out.println("APPROVED");
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int time=0; time 0 boolean flag = true; flag true while(flag&&time<n){
                int m = sc.nextInt();
                if(m%2==0){
                    if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    }
                }
                time++;
            } flag&&time<n flag time<n time n {
                int m = sc.nextInt();
                if(m%2==0){
                    if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    }
                }
                time++;
            } int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc if(m%2==0){
                    if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    }
                } m%2==0 m%2 m 2 0 {
                    if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    }
                } if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    } !(m%3==0||m%5==0) (m%3==0||m%5==0) m%3==0 m%3 m 3 0 m%5==0 m%5 m 5 0 {
                        System.out.println("DENIED");
                        flag = false;
                    } System.out.println("DENIED") System.out.println System.out System System.out "DENIED" flag = false flag false time++ time if(flag)
            System.out.println("APPROVED"); flag 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 sc = new Scanner(System.in);
        int n = sc.nextInt();int time=0;
        boolean flag = true;
            while(flag&&time<n){
                int m = sc.nextInt();
                if(m%2==0){
                    if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    }
                }
                time++;
            }
        if(flag)
            System.out.println("APPROVED");
}} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();int time=0;
        boolean flag = true;
            while(flag&&time<n){
                int m = sc.nextInt();
                if(m%2==0){
                    if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    }
                }
                time++;
            }
        if(flag)
            System.out.println("APPROVED");
}} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();int time=0;
        boolean flag = true;
            while(flag&&time<n){
                int m = sc.nextInt();
                if(m%2==0){
                    if(!(m%3==0||m%5==0)) {
                        System.out.println("DENIED");
                        flag = false;
                    }
                }
                time++;
            }
        if(flag)
            System.out.println("APPROVED");
}}