import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    
    for(int i=0;i<N;i++){
       int s=sc.nextInt();
      if(s%2==0){
        if(s%3==0||s%5==0){
          ;
        }else{
          System.out.print("DENIED");
          break;
        }
      }
      if(i==N-1){
        System.out.print("APPROVED");
      }
    }
  }

} import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    
    for(int i=0;i<N;i++){
       int s=sc.nextInt();
      if(s%2==0){
        if(s%3==0||s%5==0){
          ;
        }else{
          System.out.print("DENIED");
          break;
        }
      }
      if(i==N-1){
        System.out.print("APPROVED");
      }
    }
  }

} Main public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    
    for(int i=0;i<N;i++){
       int s=sc.nextInt();
      if(s%2==0){
        if(s%3==0||s%5==0){
          ;
        }else{
          System.out.print("DENIED");
          break;
        }
      }
      if(i==N-1){
        System.out.print("APPROVED");
      }
    }
  } main {
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    
    for(int i=0;i<N;i++){
       int s=sc.nextInt();
      if(s%2==0){
        if(s%3==0||s%5==0){
          ;
        }else{
          System.out.print("DENIED");
          break;
        }
      }
      if(i==N-1){
        System.out.print("APPROVED");
      }
    }
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc for(int i=0;i<N;i++){
       int s=sc.nextInt();
      if(s%2==0){
        if(s%3==0||s%5==0){
          ;
        }else{
          System.out.print("DENIED");
          break;
        }
      }
      if(i==N-1){
        System.out.print("APPROVED");
      }
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
       int s=sc.nextInt();
      if(s%2==0){
        if(s%3==0||s%5==0){
          ;
        }else{
          System.out.print("DENIED");
          break;
        }
      }
      if(i==N-1){
        System.out.print("APPROVED");
      }
    } {
       int s=sc.nextInt();
      if(s%2==0){
        if(s%3==0||s%5==0){
          ;
        }else{
          System.out.print("DENIED");
          break;
        }
      }
      if(i==N-1){
        System.out.print("APPROVED");
      }
    } int s=sc.nextInt(); s sc.nextInt() sc.nextInt sc if(s%2==0){
        if(s%3==0||s%5==0){
          ;
        }else{
          System.out.print("DENIED");
          break;
        }
      } s%2==0 s%2 s 2 0 {
        if(s%3==0||s%5==0){
          ;
        }else{
          System.out.print("DENIED");
          break;
        }
      } if(s%3==0||s%5==0){
          ;
        }else{
          System.out.print("DENIED");
          break;
        } s%3==0||s%5==0 s%3==0 s%3 s 3 0 s%5==0 s%5 s 5 0 {
          ;
        } {
          System.out.print("DENIED");
          break;
        } System.out.print("DENIED") System.out.print System.out System System.out "DENIED" break; if(i==N-1){
        System.out.print("APPROVED");
      } i==N-1 i N-1 N 1 {
        System.out.print("APPROVED");
      } System.out.print("APPROVED") System.out.print System.out System System.out "APPROVED" String[] args args
import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    
    for(int i=0;i<N;i++){
       int s=sc.nextInt();
      if(s%2==0){
        if(s%3==0||s%5==0){
          ;
        }else{
          System.out.print("DENIED");
          break;
        }
      }
      if(i==N-1){
        System.out.print("APPROVED");
      }
    }
  }

}
