import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean ok = true;
        for(int i = 0;i < n;i++){
            int num = sc.nextInt();
            if(num%2 != 0||(num%3==0||num%5==0)){
                ok = true;
            }else{
                ok = false;
                break;
            }
        }
        System.out.println(ok?"APPROVED":"DENIED");
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean ok = true;
        for(int i = 0;i < n;i++){
            int num = sc.nextInt();
            if(num%2 != 0||(num%3==0||num%5==0)){
                ok = true;
            }else{
                ok = false;
                break;
            }
        }
        System.out.println(ok?"APPROVED":"DENIED");
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean ok = true;
        for(int i = 0;i < n;i++){
            int num = sc.nextInt();
            if(num%2 != 0||(num%3==0||num%5==0)){
                ok = true;
            }else{
                ok = false;
                break;
            }
        }
        System.out.println(ok?"APPROVED":"DENIED");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean ok = true;
        for(int i = 0;i < n;i++){
            int num = sc.nextInt();
            if(num%2 != 0||(num%3==0||num%5==0)){
                ok = true;
            }else{
                ok = false;
                break;
            }
        }
        System.out.println(ok?"APPROVED":"DENIED");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc boolean ok = true; ok true for(int i = 0;i < n;i++){
            int num = sc.nextInt();
            if(num%2 != 0||(num%3==0||num%5==0)){
                ok = true;
            }else{
                ok = false;
                break;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int num = sc.nextInt();
            if(num%2 != 0||(num%3==0||num%5==0)){
                ok = true;
            }else{
                ok = false;
                break;
            }
        } {
            int num = sc.nextInt();
            if(num%2 != 0||(num%3==0||num%5==0)){
                ok = true;
            }else{
                ok = false;
                break;
            }
        } int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if(num%2 != 0||(num%3==0||num%5==0)){
                ok = true;
            }else{
                ok = false;
                break;
            } num%2 != 0||(num%3==0||num%5==0) num%2 != 0 num%2 num 2 0 (num%3==0||num%5==0) num%3==0 num%3 num 3 0 num%5==0 num%5 num 5 0 {
                ok = true;
            } ok = true ok true {
                ok = false;
                break;
            } ok = false ok false break; System.out.println(ok?"APPROVED":"DENIED") System.out.println System.out System System.out ok?"APPROVED":"DENIED" ok "APPROVED" "DENIED" String[] args args
import java.util.*;

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