import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;

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

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