import java.io.*;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int numInt = Integer.parseInt(br.readLine());
    
    String[] data = br.readLine().split(" ");
    
    for(String s: data){
      int num = Integer.parseInt(s);
      if(num % 2 == 0 && num % 3 != 0 && num % 5 != 0){
        System.out.println("DENIED");
        return;
      }
    }
    System.out.println("APPROVED");
  }
} import java.io.*; io.* java public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int numInt = Integer.parseInt(br.readLine());
    
    String[] data = br.readLine().split(" ");
    
    for(String s: data){
      int num = Integer.parseInt(s);
      if(num % 2 == 0 && num % 3 != 0 && num % 5 != 0){
        System.out.println("DENIED");
        return;
      }
    }
    System.out.println("APPROVED");
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int numInt = Integer.parseInt(br.readLine());
    
    String[] data = br.readLine().split(" ");
    
    for(String s: data){
      int num = Integer.parseInt(s);
      if(num % 2 == 0 && num % 3 != 0 && num % 5 != 0){
        System.out.println("DENIED");
        return;
      }
    }
    System.out.println("APPROVED");
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int numInt = Integer.parseInt(br.readLine());
    
    String[] data = br.readLine().split(" ");
    
    for(String s: data){
      int num = Integer.parseInt(s);
      if(num % 2 == 0 && num % 3 != 0 && num % 5 != 0){
        System.out.println("DENIED");
        return;
      }
    }
    System.out.println("APPROVED");
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int numInt = Integer.parseInt(br.readLine()); numInt Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] data = br.readLine().split(" "); data br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(String s: data){
      int num = Integer.parseInt(s);
      if(num % 2 == 0 && num % 3 != 0 && num % 5 != 0){
        System.out.println("DENIED");
        return;
      }
    } String s data {
      int num = Integer.parseInt(s);
      if(num % 2 == 0 && num % 3 != 0 && num % 5 != 0){
        System.out.println("DENIED");
        return;
      }
    } {
      int num = Integer.parseInt(s);
      if(num % 2 == 0 && num % 3 != 0 && num % 5 != 0){
        System.out.println("DENIED");
        return;
      }
    } int num = Integer.parseInt(s); num Integer.parseInt(s) Integer.parseInt Integer s if(num % 2 == 0 && num % 3 != 0 && num % 5 != 0){
        System.out.println("DENIED");
        return;
      } num % 2 == 0 && num % 3 != 0 && num % 5 != 0 num % 2 == 0 && num % 3 != 0 && num % 5 != 0 num % 2 == 0 num % 2 num 2 0 num % 3 != 0 num % 3 num 3 0 num % 5 != 0 num % 5 num 5 0 {
        System.out.println("DENIED");
        return;
      } System.out.println("DENIED") System.out.println System.out System System.out "DENIED" return; 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) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int numInt = Integer.parseInt(br.readLine());
    
    String[] data = br.readLine().split(" ");
    
    for(String s: data){
      int num = Integer.parseInt(s);
      if(num % 2 == 0 && num % 3 != 0 && num % 5 != 0){
        System.out.println("DENIED");
        return;
      }
    }
    System.out.println("APPROVED");
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int numInt = Integer.parseInt(br.readLine());
    
    String[] data = br.readLine().split(" ");
    
    for(String s: data){
      int num = Integer.parseInt(s);
      if(num % 2 == 0 && num % 3 != 0 && num % 5 != 0){
        System.out.println("DENIED");
        return;
      }
    }
    System.out.println("APPROVED");
  }
} Main
import java.io.*;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int numInt = Integer.parseInt(br.readLine());
    
    String[] data = br.readLine().split(" ");
    
    for(String s: data){
      int num = Integer.parseInt(s);
      if(num % 2 == 0 && num % 3 != 0 && num % 5 != 0){
        System.out.println("DENIED");
        return;
      }
    }
    System.out.println("APPROVED");
  }
}
