import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] ints = new int[n];
    boolean bl = true;
    for(int i = 0; i < n; i++){
      ints[i] = sc.nextInt();
      bl &= ((ints[i] % 2 == 1) || (ints[i] % 3 == 0 || ints[i] % 5 == 0));
    }
    if(bl){
      System.out.println("APPROVED");
    }else{
      System.out.println("DENIED");
    }
    
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] ints = new int[n];
    boolean bl = true;
    for(int i = 0; i < n; i++){
      ints[i] = sc.nextInt();
      bl &= ((ints[i] % 2 == 1) || (ints[i] % 3 == 0 || ints[i] % 5 == 0));
    }
    if(bl){
      System.out.println("APPROVED");
    }else{
      System.out.println("DENIED");
    }
    
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] ints = new int[n];
    boolean bl = true;
    for(int i = 0; i < n; i++){
      ints[i] = sc.nextInt();
      bl &= ((ints[i] % 2 == 1) || (ints[i] % 3 == 0 || ints[i] % 5 == 0));
    }
    if(bl){
      System.out.println("APPROVED");
    }else{
      System.out.println("DENIED");
    }
    
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] ints = new int[n];
    boolean bl = true;
    for(int i = 0; i < n; i++){
      ints[i] = sc.nextInt();
      bl &= ((ints[i] % 2 == 1) || (ints[i] % 3 == 0 || ints[i] % 5 == 0));
    }
    if(bl){
      System.out.println("APPROVED");
    }else{
      System.out.println("DENIED");
    }
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] ints = new int[n]; ints new int[n] n boolean bl = true; bl true for(int i = 0; i < n; i++){
      ints[i] = sc.nextInt();
      bl &= ((ints[i] % 2 == 1) || (ints[i] % 3 == 0 || ints[i] % 5 == 0));
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      ints[i] = sc.nextInt();
      bl &= ((ints[i] % 2 == 1) || (ints[i] % 3 == 0 || ints[i] % 5 == 0));
    } {
      ints[i] = sc.nextInt();
      bl &= ((ints[i] % 2 == 1) || (ints[i] % 3 == 0 || ints[i] % 5 == 0));
    } ints[i] = sc.nextInt() ints[i] ints i sc.nextInt() sc.nextInt sc bl &= ((ints[i] % 2 == 1) || (ints[i] % 3 == 0 || ints[i] % 5 == 0)) bl ((ints[i] % 2 == 1) || (ints[i] % 3 == 0 || ints[i] % 5 == 0)) (ints[i] % 2 == 1) ints[i] % 2 ints[i] ints i 2 1 (ints[i] % 3 == 0 || ints[i] % 5 == 0) ints[i] % 3 == 0 ints[i] % 3 ints[i] ints i 3 0 ints[i] % 5 == 0 ints[i] % 5 ints[i] ints i 5 0 if(bl){
      System.out.println("APPROVED");
    }else{
      System.out.println("DENIED");
    } bl {
      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.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] ints = new int[n];
    boolean bl = true;
    for(int i = 0; i < n; i++){
      ints[i] = sc.nextInt();
      bl &= ((ints[i] % 2 == 1) || (ints[i] % 3 == 0 || ints[i] % 5 == 0));
    }
    if(bl){
      System.out.println("APPROVED");
    }else{
      System.out.println("DENIED");
    }
    
  }
}