

import java.util.*;
import java.io.*;

public class Main {
    static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

        String next() {
            while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        }

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++)
                a[i] = nextInt();
            return a;
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }

    public static void main(String[] args) {
        FastScanner sc = new FastScanner();
        boolean ok = true;
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; ++i) {
            arr[i] = sc.nextInt();
        }
        for (int i = 0; i < n; ++i) {
            if (arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0)) {
                ok = false;
                break;}
//             else if (arr[i] % 2 == 0 && (arr[i] % 3 == 0 || arr[i] % 5 == 0)) {
//                ok = true;
//            }
        }
        if (ok == true) System.out.println("APPROVED");
        else System.out.println("DENIED");

    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

        String next() {
            while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        }

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++)
                a[i] = nextInt();
            return a;
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }

    public static void main(String[] args) {
        FastScanner sc = new FastScanner();
        boolean ok = true;
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; ++i) {
            arr[i] = sc.nextInt();
        }
        for (int i = 0; i < n; ++i) {
            if (arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0)) {
                ok = false;
                break;}
//             else if (arr[i] % 2 == 0 && (arr[i] % 3 == 0 || arr[i] % 5 == 0)) {
//                ok = true;
//            }
        }
        if (ok == true) System.out.println("APPROVED");
        else System.out.println("DENIED");

    }
} Main public static void main(String[] args) {
        FastScanner sc = new FastScanner();
        boolean ok = true;
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; ++i) {
            arr[i] = sc.nextInt();
        }
        for (int i = 0; i < n; ++i) {
            if (arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0)) {
                ok = false;
                break;}
//             else if (arr[i] % 2 == 0 && (arr[i] % 3 == 0 || arr[i] % 5 == 0)) {
//                ok = true;
//            }
        }
        if (ok == true) System.out.println("APPROVED");
        else System.out.println("DENIED");

    } main {
        FastScanner sc = new FastScanner();
        boolean ok = true;
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; ++i) {
            arr[i] = sc.nextInt();
        }
        for (int i = 0; i < n; ++i) {
            if (arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0)) {
                ok = false;
                break;}
//             else if (arr[i] % 2 == 0 && (arr[i] % 3 == 0 || arr[i] % 5 == 0)) {
//                ok = true;
//            }
        }
        if (ok == true) System.out.println("APPROVED");
        else System.out.println("DENIED");

    } FastScanner sc = new FastScanner(); sc new FastScanner() boolean ok = true; ok true int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] arr = new int[n]; arr new int[n] n for (int i = 0; i < n; ++i) {
            arr[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
            arr[i] = sc.nextInt();
        } {
            arr[i] = sc.nextInt();
        } arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc for (int i = 0; i < n; ++i) {
            if (arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0)) {
                ok = false;
                break;}
//             else if (arr[i] % 2 == 0 && (arr[i] % 3 == 0 || arr[i] % 5 == 0)) {
//                ok = true;
//            }
        } int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
            if (arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0)) {
                ok = false;
                break;}
//             else if (arr[i] % 2 == 0 && (arr[i] % 3 == 0 || arr[i] % 5 == 0)) {
//                ok = true;
//            }
        } {
            if (arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0)) {
                ok = false;
                break;}
//             else if (arr[i] % 2 == 0 && (arr[i] % 3 == 0 || arr[i] % 5 == 0)) {
//                ok = true;
//            }
        } if (arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0)) {
                ok = false;
                break;} arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0) arr[i] % 2 == 0 arr[i] % 2 arr[i] arr i 2 0 (arr[i] % 3 != 0 && arr[i] % 5 != 0) arr[i] % 3 != 0 arr[i] % 3 arr[i] arr i 3 0 arr[i] % 5 != 0 arr[i] % 5 arr[i] arr i 5 0 {
                ok = false;
                break;} ok = false ok false break; if (ok == true) System.out.println("APPROVED");
        else System.out.println("DENIED"); ok == true ok true System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" System.out.println("DENIED") System.out.println System.out System System.out "DENIED" String[] args args static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

        String next() {
            while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        }

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++)
                a[i] = nextInt();
            return a;
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    } FastScanner BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st = new StringTokenizer(""); st new StringTokenizer("") String next() {
            while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        } next {
            while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        } while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                } !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                } IOException e {
                    e.printStackTrace();
                } e.printStackTrace() e.printStackTrace e {
                    st = new StringTokenizer(br.readLine());
                } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st int nextInt() {
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++)
                a[i] = nextInt();
            return a;
        } readArray {
            int[] a = new int[n];
            for (int i = 0; i < n; i++)
                a[i] = nextInt();
            return a;
        } int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++)
                a[i] = nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i a[i] = nextInt(); a[i] = nextInt() a[i] a i nextInt() nextInt return a; a int n n long nextLong() {
            return Long.parseLong(next());
        } nextLong {
            return Long.parseLong(next());
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public class Main {
    static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

        String next() {
            while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        }

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++)
                a[i] = nextInt();
            return a;
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }

    public static void main(String[] args) {
        FastScanner sc = new FastScanner();
        boolean ok = true;
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; ++i) {
            arr[i] = sc.nextInt();
        }
        for (int i = 0; i < n; ++i) {
            if (arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0)) {
                ok = false;
                break;}
//             else if (arr[i] % 2 == 0 && (arr[i] % 3 == 0 || arr[i] % 5 == 0)) {
//                ok = true;
//            }
        }
        if (ok == true) System.out.println("APPROVED");
        else System.out.println("DENIED");

    }
} public class Main {
    static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

        String next() {
            while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        }

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++)
                a[i] = nextInt();
            return a;
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }

    public static void main(String[] args) {
        FastScanner sc = new FastScanner();
        boolean ok = true;
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; ++i) {
            arr[i] = sc.nextInt();
        }
        for (int i = 0; i < n; ++i) {
            if (arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0)) {
                ok = false;
                break;}
//             else if (arr[i] % 2 == 0 && (arr[i] % 3 == 0 || arr[i] % 5 == 0)) {
//                ok = true;
//            }
        }
        if (ok == true) System.out.println("APPROVED");
        else System.out.println("DENIED");

    }
} Main


import java.util.*;
import java.io.*;

public class Main {
    static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

        String next() {
            while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        }

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++)
                a[i] = nextInt();
            return a;
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }

    public static void main(String[] args) {
        FastScanner sc = new FastScanner();
        boolean ok = true;
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; ++i) {
            arr[i] = sc.nextInt();
        }
        for (int i = 0; i < n; ++i) {
            if (arr[i] % 2 == 0 && (arr[i] % 3 != 0 && arr[i] % 5 != 0)) {
                ok = false;
                break;}
//             else if (arr[i] % 2 == 0 && (arr[i] % 3 == 0 || arr[i] % 5 == 0)) {
//                ok = true;
//            }
        }
        if (ok == true) System.out.println("APPROVED");
        else System.out.println("DENIED");

    }
}
