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