import java.util.*;

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

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