import java.io.*;
import java.util.*;

class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        int N = Integer.parseInt(br.readLine());
        String[] array = br.readLine().split(" ");
        int[] num = new int[N];

        for(int i = 0; i < N; i++){
          num[i] = Integer.parseInt(array[i]);
        }
        
        int result = 0;
        int flag = 0;

        for(int i = 0; i < N; i++){
          if((num[i] % 2) == 0){
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          }else{
            continue;
          }
        }
    
        if(flag ==  0){
          System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }

      }
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        int N = Integer.parseInt(br.readLine());
        String[] array = br.readLine().split(" ");
        int[] num = new int[N];

        for(int i = 0; i < N; i++){
          num[i] = Integer.parseInt(array[i]);
        }
        
        int result = 0;
        int flag = 0;

        for(int i = 0; i < N; i++){
          if((num[i] % 2) == 0){
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          }else{
            continue;
          }
        }
    
        if(flag ==  0){
          System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }

      }
    }
} Main public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        int N = Integer.parseInt(br.readLine());
        String[] array = br.readLine().split(" ");
        int[] num = new int[N];

        for(int i = 0; i < N; i++){
          num[i] = Integer.parseInt(array[i]);
        }
        
        int result = 0;
        int flag = 0;

        for(int i = 0; i < N; i++){
          if((num[i] % 2) == 0){
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          }else{
            continue;
          }
        }
    
        if(flag ==  0){
          System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }

      }
    } main {
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        int N = Integer.parseInt(br.readLine());
        String[] array = br.readLine().split(" ");
        int[] num = new int[N];

        for(int i = 0; i < N; i++){
          num[i] = Integer.parseInt(array[i]);
        }
        
        int result = 0;
        int flag = 0;

        for(int i = 0; i < N; i++){
          if((num[i] % 2) == 0){
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          }else{
            continue;
          }
        }
    
        if(flag ==  0){
          System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }

      }
    } try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        int N = Integer.parseInt(br.readLine());
        String[] array = br.readLine().split(" ");
        int[] num = new int[N];

        for(int i = 0; i < N; i++){
          num[i] = Integer.parseInt(array[i]);
        }
        
        int result = 0;
        int flag = 0;

        for(int i = 0; i < N; i++){
          if((num[i] % 2) == 0){
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          }else{
            continue;
          }
        }
    
        if(flag ==  0){
          System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }

      } {
        int N = Integer.parseInt(br.readLine());
        String[] array = br.readLine().split(" ");
        int[] num = new int[N];

        for(int i = 0; i < N; i++){
          num[i] = Integer.parseInt(array[i]);
        }
        
        int result = 0;
        int flag = 0;

        for(int i = 0; i < N; i++){
          if((num[i] % 2) == 0){
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          }else{
            continue;
          }
        }
    
        if(flag ==  0){
          System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }

      } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] array = br.readLine().split(" "); array br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] num = new int[N]; num new int[N] N for(int i = 0; i < N; i++){
          num[i] = Integer.parseInt(array[i]);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
          num[i] = Integer.parseInt(array[i]);
        } {
          num[i] = Integer.parseInt(array[i]);
        } num[i] = Integer.parseInt(array[i]) num[i] num i Integer.parseInt(array[i]) Integer.parseInt Integer array[i] array i int result = 0; result 0 int flag = 0; flag 0 for(int i = 0; i < N; i++){
          if((num[i] % 2) == 0){
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          }else{
            continue;
          }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
          if((num[i] % 2) == 0){
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          }else{
            continue;
          }
        } {
          if((num[i] % 2) == 0){
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          }else{
            continue;
          }
        } if((num[i] % 2) == 0){
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          }else{
            continue;
          } (num[i] % 2) == 0 (num[i] % 2) num[i] num i 2 0 {
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          } if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            } (num[i] % 3) == 0 || (num[i] % 5) == 0 (num[i] % 3) == 0 (num[i] % 3) num[i] num i 3 0 (num[i] % 5) == 0 (num[i] % 5) num[i] num i 5 0 {
              result += 1;
            } result += 1 result 1 {
              flag += 1;
            } flag += 1 flag 1 {
            continue;
          } continue; if(flag ==  0){
          System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        } flag ==  0 flag 0 {
          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.io.*;
import java.util.*;

class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        int N = Integer.parseInt(br.readLine());
        String[] array = br.readLine().split(" ");
        int[] num = new int[N];

        for(int i = 0; i < N; i++){
          num[i] = Integer.parseInt(array[i]);
        }
        
        int result = 0;
        int flag = 0;

        for(int i = 0; i < N; i++){
          if((num[i] % 2) == 0){
            if((num[i] % 3) == 0 || (num[i] % 5) == 0){
              result += 1;
            }else{
              flag += 1;
            }
          }else{
            continue;
          }
        }
    
        if(flag ==  0){
          System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }

      }
    }
}