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

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
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);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    }

    static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int n = Integer.parseInt(in.next());
            Integer a[][] = new Integer[n][2];
            for (int i = 0; i < n; i++) {
                a[i][0] = Integer.parseInt(in.next());
            }
            long cnt = 0;
            long sum = 0;

            for (int i = 0; i < n; i++) {
                if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                }
            }
            // 出力
            if (cnt == sum) {
                out.println("APPROVED");
            } else {
                out.println("DENIED");
            }

        }

    }
}
 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.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);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    }

    static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int n = Integer.parseInt(in.next());
            Integer a[][] = new Integer[n][2];
            for (int i = 0; i < n; i++) {
                a[i][0] = Integer.parseInt(in.next());
            }
            long cnt = 0;
            long sum = 0;

            for (int i = 0; i < n; i++) {
                if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                }
            }
            // 出力
            if (cnt == sum) {
                out.println("APPROVED");
            } else {
                out.println("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);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        B solver = new B();
        solver.solve(1, 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) B solver = new B(); solver new B() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int n = Integer.parseInt(in.next());
            Integer a[][] = new Integer[n][2];
            for (int i = 0; i < n; i++) {
                a[i][0] = Integer.parseInt(in.next());
            }
            long cnt = 0;
            long sum = 0;

            for (int i = 0; i < n; i++) {
                if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                }
            }
            // 出力
            if (cnt == sum) {
                out.println("APPROVED");
            } else {
                out.println("DENIED");
            }

        }

    } B public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int n = Integer.parseInt(in.next());
            Integer a[][] = new Integer[n][2];
            for (int i = 0; i < n; i++) {
                a[i][0] = Integer.parseInt(in.next());
            }
            long cnt = 0;
            long sum = 0;

            for (int i = 0; i < n; i++) {
                if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                }
            }
            // 出力
            if (cnt == sum) {
                out.println("APPROVED");
            } else {
                out.println("DENIED");
            }

        } solve {
            // 入力
            int n = Integer.parseInt(in.next());
            Integer a[][] = new Integer[n][2];
            for (int i = 0; i < n; i++) {
                a[i][0] = Integer.parseInt(in.next());
            }
            long cnt = 0;
            long sum = 0;

            for (int i = 0; i < n; i++) {
                if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                }
            }
            // 出力
            if (cnt == sum) {
                out.println("APPROVED");
            } else {
                out.println("DENIED");
            }

        } int n = Integer.parseInt(in.next()); n Integer.parseInt(in.next()) Integer.parseInt Integer in.next() in.next in Integer a[][] = new Integer[n][2]; a new Integer[n][2] n 2 for (int i = 0; i < n; i++) {
                a[i][0] = Integer.parseInt(in.next());
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                a[i][0] = Integer.parseInt(in.next());
            } {
                a[i][0] = Integer.parseInt(in.next());
            } a[i][0] = Integer.parseInt(in.next()) a[i][0] a[i] a i 0 Integer.parseInt(in.next()) Integer.parseInt Integer in.next() in.next in long cnt = 0; cnt 0 long sum = 0; sum 0 for (int i = 0; i < n; i++) {
                if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                }
            } {
                if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                }
            } if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                } a[i][0] % 2 == 0 a[i][0] % 2 a[i][0] a[i] a i 0 2 0 {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                } cnt++ cnt if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    } a[i][0] % 3 == 0 || a[i][0] % 5 == 0 a[i][0] % 3 == 0 a[i][0] % 3 a[i][0] a[i] a i 0 3 0 a[i][0] % 5 == 0 a[i][0] % 5 a[i][0] a[i] a i 0 5 0 {
                        sum++;
                    } sum++ sum if (cnt == sum) {
                out.println("APPROVED");
            } else {
                out.println("DENIED");
            } cnt == sum cnt sum {
                out.println("APPROVED");
            } out.println("APPROVED") out.println out "APPROVED" {
                out.println("DENIED");
            } out.println("DENIED") out.println out "DENIED" int testNumber testNumber 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);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    }

    static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int n = Integer.parseInt(in.next());
            Integer a[][] = new Integer[n][2];
            for (int i = 0; i < n; i++) {
                a[i][0] = Integer.parseInt(in.next());
            }
            long cnt = 0;
            long sum = 0;

            for (int i = 0; i < n; i++) {
                if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                }
            }
            // 出力
            if (cnt == sum) {
                out.println("APPROVED");
            } else {
                out.println("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);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    }

    static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int n = Integer.parseInt(in.next());
            Integer a[][] = new Integer[n][2];
            for (int i = 0; i < n; i++) {
                a[i][0] = Integer.parseInt(in.next());
            }
            long cnt = 0;
            long sum = 0;

            for (int i = 0; i < n; i++) {
                if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                }
            }
            // 出力
            if (cnt == sum) {
                out.println("APPROVED");
            } else {
                out.println("DENIED");
            }

        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
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);
        B solver = new B();
        solver.solve(1, in, out);
        out.close();
    }

    static class B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            int n = Integer.parseInt(in.next());
            Integer a[][] = new Integer[n][2];
            for (int i = 0; i < n; i++) {
                a[i][0] = Integer.parseInt(in.next());
            }
            long cnt = 0;
            long sum = 0;

            for (int i = 0; i < n; i++) {
                if (a[i][0] % 2 == 0) {
                    cnt++;
                    if (a[i][0] % 3 == 0 || a[i][0] % 5 == 0) {
                        sum++;
                    }
                }
            }
            // 出力
            if (cnt == sum) {
                out.println("APPROVED");
            } else {
                out.println("DENIED");
            }

        }

    }
}

