import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean flag1 =  false;
    int num;
    int count = 0;
    int[] array = new int[n];

    for(int i=0; i<n; i++){
      num = sc.nextInt();
      if(num%2==0){
        array[count] = num;
        count++;
      }
    }



    for(int i=0; i<count; i++){
      if((array[i]%3!=0)&&(array[i]%5!=0)){
        System.out.println("DENIED");
        return;
      }
    }

    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 n = sc.nextInt();
    boolean flag1 =  false;
    int num;
    int count = 0;
    int[] array = new int[n];

    for(int i=0; i<n; i++){
      num = sc.nextInt();
      if(num%2==0){
        array[count] = num;
        count++;
      }
    }



    for(int i=0; i<count; i++){
      if((array[i]%3!=0)&&(array[i]%5!=0)){
        System.out.println("DENIED");
        return;
      }
    }

    System.out.println("APPROVED");




  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean flag1 =  false;
    int num;
    int count = 0;
    int[] array = new int[n];

    for(int i=0; i<n; i++){
      num = sc.nextInt();
      if(num%2==0){
        array[count] = num;
        count++;
      }
    }



    for(int i=0; i<count; i++){
      if((array[i]%3!=0)&&(array[i]%5!=0)){
        System.out.println("DENIED");
        return;
      }
    }

    System.out.println("APPROVED");




  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean flag1 =  false;
    int num;
    int count = 0;
    int[] array = new int[n];

    for(int i=0; i<n; i++){
      num = sc.nextInt();
      if(num%2==0){
        array[count] = num;
        count++;
      }
    }



    for(int i=0; i<count; i++){
      if((array[i]%3!=0)&&(array[i]%5!=0)){
        System.out.println("DENIED");
        return;
      }
    }

    System.out.println("APPROVED");




  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc boolean flag1 =  false; flag1 false int num; num int count = 0; count 0 int[] array = new int[n]; array new int[n] n for(int i=0; i<n; i++){
      num = sc.nextInt();
      if(num%2==0){
        array[count] = num;
        count++;
      }
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      num = sc.nextInt();
      if(num%2==0){
        array[count] = num;
        count++;
      }
    } {
      num = sc.nextInt();
      if(num%2==0){
        array[count] = num;
        count++;
      }
    } num = sc.nextInt() num sc.nextInt() sc.nextInt sc if(num%2==0){
        array[count] = num;
        count++;
      } num%2==0 num%2 num 2 0 {
        array[count] = num;
        count++;
      } array[count] = num array[count] array count num count++ count for(int i=0; i<count; i++){
      if((array[i]%3!=0)&&(array[i]%5!=0)){
        System.out.println("DENIED");
        return;
      }
    } int i=0; int i=0; i 0 i<count i count i++ i++ i {
      if((array[i]%3!=0)&&(array[i]%5!=0)){
        System.out.println("DENIED");
        return;
      }
    } {
      if((array[i]%3!=0)&&(array[i]%5!=0)){
        System.out.println("DENIED");
        return;
      }
    } if((array[i]%3!=0)&&(array[i]%5!=0)){
        System.out.println("DENIED");
        return;
      } (array[i]%3!=0)&&(array[i]%5!=0) (array[i]%3!=0) array[i]%3 array[i] array i 3 0 (array[i]%5!=0) array[i]%5 array[i] array i 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){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean flag1 =  false;
    int num;
    int count = 0;
    int[] array = new int[n];

    for(int i=0; i<n; i++){
      num = sc.nextInt();
      if(num%2==0){
        array[count] = num;
        count++;
      }
    }



    for(int i=0; i<count; i++){
      if((array[i]%3!=0)&&(array[i]%5!=0)){
        System.out.println("DENIED");
        return;
      }
    }

    System.out.println("APPROVED");




  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean flag1 =  false;
    int num;
    int count = 0;
    int[] array = new int[n];

    for(int i=0; i<n; i++){
      num = sc.nextInt();
      if(num%2==0){
        array[count] = num;
        count++;
      }
    }



    for(int i=0; i<count; i++){
      if((array[i]%3!=0)&&(array[i]%5!=0)){
        System.out.println("DENIED");
        return;
      }
    }

    System.out.println("APPROVED");




  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean flag1 =  false;
    int num;
    int count = 0;
    int[] array = new int[n];

    for(int i=0; i<n; i++){
      num = sc.nextInt();
      if(num%2==0){
        array[count] = num;
        count++;
      }
    }



    for(int i=0; i<count; i++){
      if((array[i]%3!=0)&&(array[i]%5!=0)){
        System.out.println("DENIED");
        return;
      }
    }

    System.out.println("APPROVED");




  }
}