import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Solver solver = new Solver();
        solver.solve(in, out);
        out.close();
    }

    static class Solver {
        public void solve(Scanner in, PrintWriter out) {
            int N = in.nextInt();
            boolean approved = true;
            for (int i = 0; i < N; i++) {
                int A = in.nextInt();
                if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                }
            }
            out.println(approved ? "APPROVED" : "DENIED");
        }
    }
} import java.io.InputStream; InputStream java.io import java.io.OutputStream; OutputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Solver solver = new Solver();
        solver.solve(in, out);
        out.close();
    }

    static class Solver {
        public void solve(Scanner in, PrintWriter out) {
            int N = in.nextInt();
            boolean approved = true;
            for (int i = 0; i < N; i++) {
                int A = in.nextInt();
                if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                }
            }
            out.println(approved ? "APPROVED" : "DENIED");
        }
    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Solver solver = new Solver();
        solver.solve(in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Solver solver = new Solver();
        solver.solve(in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) Solver solver = new Solver(); solver new Solver() solver.solve(in, out) solver.solve solver in out out.close() out.close out String[] args args static class Solver {
        public void solve(Scanner in, PrintWriter out) {
            int N = in.nextInt();
            boolean approved = true;
            for (int i = 0; i < N; i++) {
                int A = in.nextInt();
                if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                }
            }
            out.println(approved ? "APPROVED" : "DENIED");
        }
    } Solver public void solve(Scanner in, PrintWriter out) {
            int N = in.nextInt();
            boolean approved = true;
            for (int i = 0; i < N; i++) {
                int A = in.nextInt();
                if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                }
            }
            out.println(approved ? "APPROVED" : "DENIED");
        } solve {
            int N = in.nextInt();
            boolean approved = true;
            for (int i = 0; i < N; i++) {
                int A = in.nextInt();
                if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                }
            }
            out.println(approved ? "APPROVED" : "DENIED");
        } int N = in.nextInt(); N in.nextInt() in.nextInt in boolean approved = true; approved true for (int i = 0; i < N; i++) {
                int A = in.nextInt();
                if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                }
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                int A = in.nextInt();
                if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                }
            } {
                int A = in.nextInt();
                if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                }
            } int A = in.nextInt(); A in.nextInt() in.nextInt in if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                } A % 2 == 0 A % 2 A 2 0 {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                } if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    } !(A % 3 == 0 || A % 5 == 0) (A % 3 == 0 || A % 5 == 0) A % 3 == 0 A % 3 A 3 0 A % 5 == 0 A % 5 A 5 0 {
                        approved = false;
                    } approved = false approved false out.println(approved ? "APPROVED" : "DENIED") out.println out approved ? "APPROVED" : "DENIED" approved "APPROVED" "DENIED" Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Solver solver = new Solver();
        solver.solve(in, out);
        out.close();
    }

    static class Solver {
        public void solve(Scanner in, PrintWriter out) {
            int N = in.nextInt();
            boolean approved = true;
            for (int i = 0; i < N; i++) {
                int A = in.nextInt();
                if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                }
            }
            out.println(approved ? "APPROVED" : "DENIED");
        }
    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Solver solver = new Solver();
        solver.solve(in, out);
        out.close();
    }

    static class Solver {
        public void solve(Scanner in, PrintWriter out) {
            int N = in.nextInt();
            boolean approved = true;
            for (int i = 0; i < N; i++) {
                int A = in.nextInt();
                if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                }
            }
            out.println(approved ? "APPROVED" : "DENIED");
        }
    }
} Main
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Solver solver = new Solver();
        solver.solve(in, out);
        out.close();
    }

    static class Solver {
        public void solve(Scanner in, PrintWriter out) {
            int N = in.nextInt();
            boolean approved = true;
            for (int i = 0; i < N; i++) {
                int A = in.nextInt();
                if (A % 2 == 0) {
                    if (!(A % 3 == 0 || A % 5 == 0)) {
                        approved = false;
                    }
                }
            }
            out.println(approved ? "APPROVED" : "DENIED");
        }
    }
}