

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;


class Main {
    public static void main(String[] args) {
        InputReader in = new InputReader(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();
    boolean flag = true;
        while(n > 0){
            int item = in.nextInt();

            if(item%2 == 0 ){       //even
                if(item%3 == 0 || item%5 ==0 ){
                    flag = true;
                }else{
                    flag = false;
                    break;
                }
            }

            n--;

        }
        if(flag)
            out.println("APPROVED");
        else out.println("DENIED");
        //int n = in.nextInt();

        out.close();
    }

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
} import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Arrays; Arrays java.util import java.util.StringTokenizer; StringTokenizer java.util import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.InputStream; InputStream java.io class Main {
    public static void main(String[] args) {
        InputReader in = new InputReader(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();
    boolean flag = true;
        while(n > 0){
            int item = in.nextInt();

            if(item%2 == 0 ){       //even
                if(item%3 == 0 || item%5 ==0 ){
                    flag = true;
                }else{
                    flag = false;
                    break;
                }
            }

            n--;

        }
        if(flag)
            out.println("APPROVED");
        else out.println("DENIED");
        //int n = in.nextInt();

        out.close();
    }

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
} Main public static void main(String[] args) {
        InputReader in = new InputReader(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();
    boolean flag = true;
        while(n > 0){
            int item = in.nextInt();

            if(item%2 == 0 ){       //even
                if(item%3 == 0 || item%5 ==0 ){
                    flag = true;
                }else{
                    flag = false;
                    break;
                }
            }

            n--;

        }
        if(flag)
            out.println("APPROVED");
        else out.println("DENIED");
        //int n = in.nextInt();

        out.close();
    } main {
        InputReader in = new InputReader(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();
    boolean flag = true;
        while(n > 0){
            int item = in.nextInt();

            if(item%2 == 0 ){       //even
                if(item%3 == 0 || item%5 ==0 ){
                    flag = true;
                }else{
                    flag = false;
                    break;
                }
            }

            n--;

        }
        if(flag)
            out.println("APPROVED");
        else out.println("DENIED");
        //int n = in.nextInt();

        out.close();
    } InputReader in = new InputReader(System.in); in new InputReader(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int n = in.nextInt(); n in.nextInt() in.nextInt in boolean flag = true; flag true while(n > 0){
            int item = in.nextInt();

            if(item%2 == 0 ){       //even
                if(item%3 == 0 || item%5 ==0 ){
                    flag = true;
                }else{
                    flag = false;
                    break;
                }
            }

            n--;

        } n > 0 n 0 {
            int item = in.nextInt();

            if(item%2 == 0 ){       //even
                if(item%3 == 0 || item%5 ==0 ){
                    flag = true;
                }else{
                    flag = false;
                    break;
                }
            }

            n--;

        } int item = in.nextInt(); item in.nextInt() in.nextInt in if(item%2 == 0 ){       //even
                if(item%3 == 0 || item%5 ==0 ){
                    flag = true;
                }else{
                    flag = false;
                    break;
                }
            } item%2 == 0 item%2 item 2 0 {       //even
                if(item%3 == 0 || item%5 ==0 ){
                    flag = true;
                }else{
                    flag = false;
                    break;
                }
            } if(item%3 == 0 || item%5 ==0 ){
                    flag = true;
                }else{
                    flag = false;
                    break;
                } item%3 == 0 || item%5 ==0 item%3 == 0 item%3 item 3 0 item%5 ==0 item%5 item 5 0 {
                    flag = true;
                } flag = true flag true {
                    flag = false;
                    break;
                } flag = false flag false break; n-- n if(flag)
            out.println("APPROVED");
        else out.println("DENIED"); flag out.println("APPROVED") out.println out "APPROVED" out.println("DENIED") out.println out "DENIED" out.close() out.close out String[] args args static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    } InputReader public BufferedReader reader; reader public StringTokenizer tokenizer; tokenizer public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        } InputReader {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        } reader = new BufferedReader(new InputStreamReader(stream), 32768) reader new BufferedReader(new InputStreamReader(stream), 32768) tokenizer = null tokenizer null InputStream stream stream public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        } next {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        } while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            } tokenizer == null || !tokenizer.hasMoreTokens() tokenizer == null tokenizer null !tokenizer.hasMoreTokens() tokenizer.hasMoreTokens() tokenizer.hasMoreTokens tokenizer {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            } try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                } catch (IOException e) {
                    throw new RuntimeException(e);
                } IOException e {
                    throw new RuntimeException(e);
                } throw new RuntimeException(e); new RuntimeException(e) {
                    tokenizer = new StringTokenizer(reader.readLine());
                } tokenizer = new StringTokenizer(reader.readLine()) tokenizer new StringTokenizer(reader.readLine()) return tokenizer.nextToken(); tokenizer.nextToken() tokenizer.nextToken tokenizer public int nextInt() {
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next


import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;


class Main {
    public static void main(String[] args) {
        InputReader in = new InputReader(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();
    boolean flag = true;
        while(n > 0){
            int item = in.nextInt();

            if(item%2 == 0 ){       //even
                if(item%3 == 0 || item%5 ==0 ){
                    flag = true;
                }else{
                    flag = false;
                    break;
                }
            }

            n--;

        }
        if(flag)
            out.println("APPROVED");
        else out.println("DENIED");
        //int n = in.nextInt();

        out.close();
    }

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
}