import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        boolean flag = false;
        for(int i = 0; i < num; i++){
            int a = Integer.parseInt(sc.next());
            if(a%2==0){
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            }
        }
        if(flag == true)
          System.out.println("DENIED");
        else
          System.out.println("APPROVED");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        boolean flag = false;
        for(int i = 0; i < num; i++){
            int a = Integer.parseInt(sc.next());
            if(a%2==0){
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            }
        }
        if(flag == true)
          System.out.println("DENIED");
        else
          System.out.println("APPROVED");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        boolean flag = false;
        for(int i = 0; i < num; i++){
            int a = Integer.parseInt(sc.next());
            if(a%2==0){
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            }
        }
        if(flag == true)
          System.out.println("DENIED");
        else
          System.out.println("APPROVED");
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        boolean flag = false;
        for(int i = 0; i < num; i++){
            int a = Integer.parseInt(sc.next());
            if(a%2==0){
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            }
        }
        if(flag == true)
          System.out.println("DENIED");
        else
          System.out.println("APPROVED");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc boolean flag = false; flag false for(int i = 0; i < num; i++){
            int a = Integer.parseInt(sc.next());
            if(a%2==0){
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            }
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            int a = Integer.parseInt(sc.next());
            if(a%2==0){
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            }
        } {
            int a = Integer.parseInt(sc.next());
            if(a%2==0){
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            }
        } int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(a%2==0){
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            } a%2==0 a%2 a 2 0 {
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            } if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              } a%3!=0 && a%5!=0 a%3!=0 a%3 a 3 0 a%5!=0 a%5 a 5 0 {
                flag = true;
                //System.out.println(a + "aa");
              } flag = true flag true if(flag == true)
          System.out.println("DENIED");
        else
          System.out.println("APPROVED"); flag == true flag true System.out.println("DENIED") System.out.println System.out System System.out "DENIED" System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        boolean flag = false;
        for(int i = 0; i < num; i++){
            int a = Integer.parseInt(sc.next());
            if(a%2==0){
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            }
        }
        if(flag == true)
          System.out.println("DENIED");
        else
          System.out.println("APPROVED");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        boolean flag = false;
        for(int i = 0; i < num; i++){
            int a = Integer.parseInt(sc.next());
            if(a%2==0){
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            }
        }
        if(flag == true)
          System.out.println("DENIED");
        else
          System.out.println("APPROVED");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        boolean flag = false;
        for(int i = 0; i < num; i++){
            int a = Integer.parseInt(sc.next());
            if(a%2==0){
              if(a%3!=0 && a%5!=0){
                flag = true;
                //System.out.println(a + "aa");
              }
            }
        }
        if(flag == true)
          System.out.println("DENIED");
        else
          System.out.println("APPROVED");
    }
}
