import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;

public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        System.out.println(main.solve());
    }
    String solve() throws IOException {
        boolean flag = true;
        int n = sc.nextInt();
        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            if(a%2==0){
                flag &= (a%3==0)||(a%5==0);
            }
        }
        return flag?"APPROVED":"DENIED";
    }
}
 import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io import java.util.*; util.* java public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        System.out.println(main.solve());
    }
    String solve() throws IOException {
        boolean flag = true;
        int n = sc.nextInt();
        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            if(a%2==0){
                flag &= (a%3==0)||(a%5==0);
            }
        }
        return flag?"APPROVED":"DENIED";
    }
} Main static PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) public static void main(String[] args) throws IOException {
        Main main = new Main();
        System.out.println(main.solve());
    } main {
        Main main = new Main();
        System.out.println(main.solve());
    } Main main = new Main(); main new Main() System.out.println(main.solve()) System.out.println System.out System System.out main.solve() main.solve main String[] args args String solve() throws IOException {
        boolean flag = true;
        int n = sc.nextInt();
        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            if(a%2==0){
                flag &= (a%3==0)||(a%5==0);
            }
        }
        return flag?"APPROVED":"DENIED";
    } solve {
        boolean flag = true;
        int n = sc.nextInt();
        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            if(a%2==0){
                flag &= (a%3==0)||(a%5==0);
            }
        }
        return flag?"APPROVED":"DENIED";
    } boolean flag = true; flag true int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i=0;i<n;i++){
            int a = sc.nextInt();
            if(a%2==0){
                flag &= (a%3==0)||(a%5==0);
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int a = sc.nextInt();
            if(a%2==0){
                flag &= (a%3==0)||(a%5==0);
            }
        } {
            int a = sc.nextInt();
            if(a%2==0){
                flag &= (a%3==0)||(a%5==0);
            }
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if(a%2==0){
                flag &= (a%3==0)||(a%5==0);
            } a%2==0 a%2 a 2 0 {
                flag &= (a%3==0)||(a%5==0);
            } flag &= (a%3==0)||(a%5==0) flag (a%3==0)||(a%5==0) (a%3==0) a%3 a 3 0 (a%5==0) a%5 a 5 0 return flag?"APPROVED":"DENIED"; flag?"APPROVED":"DENIED" flag "APPROVED" "DENIED" public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        System.out.println(main.solve());
    }
    String solve() throws IOException {
        boolean flag = true;
        int n = sc.nextInt();
        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            if(a%2==0){
                flag &= (a%3==0)||(a%5==0);
            }
        }
        return flag?"APPROVED":"DENIED";
    }
} public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        System.out.println(main.solve());
    }
    String solve() throws IOException {
        boolean flag = true;
        int n = sc.nextInt();
        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            if(a%2==0){
                flag &= (a%3==0)||(a%5==0);
            }
        }
        return flag?"APPROVED":"DENIED";
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;

public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        System.out.println(main.solve());
    }
    String solve() throws IOException {
        boolean flag = true;
        int n = sc.nextInt();
        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            if(a%2==0){
                flag &= (a%3==0)||(a%5==0);
            }
        }
        return flag?"APPROVED":"DENIED";
    }
}

