import java.util.*;

public class Main {
 	public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      int loop;
      loop = sc.nextInt();
      
      int [] arr_i = new int [loop];
      
      for(int i = 0; i < loop; i++) {
        	arr_i[i] = sc.nextInt();
      }
      
      sc.close();
     
      ArrayList<Integer> arr_num = new ArrayList<Integer>();
      
     for(int i = 0; i < loop; i++) {
      	if(arr_i[i] % 2 == 0) {
           arr_num.add(arr_i[i]);
        }
     }
      
     int g = 0;
     int ng = 0;
     for(Integer i : arr_num) {
      		if(i % 3 == 0 || i % 5 == 0) {
             	  g++;
            } else {
                  ng++;
            }
     }
      
     if(ng > 0) {
        System.out.print("DENIED");
     } else {
        System.out.print("APPROVED");
     }
     

	}
} import java.util.*; util.* java public class Main {
 	public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      int loop;
      loop = sc.nextInt();
      
      int [] arr_i = new int [loop];
      
      for(int i = 0; i < loop; i++) {
        	arr_i[i] = sc.nextInt();
      }
      
      sc.close();
     
      ArrayList<Integer> arr_num = new ArrayList<Integer>();
      
     for(int i = 0; i < loop; i++) {
      	if(arr_i[i] % 2 == 0) {
           arr_num.add(arr_i[i]);
        }
     }
      
     int g = 0;
     int ng = 0;
     for(Integer i : arr_num) {
      		if(i % 3 == 0 || i % 5 == 0) {
             	  g++;
            } else {
                  ng++;
            }
     }
      
     if(ng > 0) {
        System.out.print("DENIED");
     } else {
        System.out.print("APPROVED");
     }
     

	}
} Main public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      int loop;
      loop = sc.nextInt();
      
      int [] arr_i = new int [loop];
      
      for(int i = 0; i < loop; i++) {
        	arr_i[i] = sc.nextInt();
      }
      
      sc.close();
     
      ArrayList<Integer> arr_num = new ArrayList<Integer>();
      
     for(int i = 0; i < loop; i++) {
      	if(arr_i[i] % 2 == 0) {
           arr_num.add(arr_i[i]);
        }
     }
      
     int g = 0;
     int ng = 0;
     for(Integer i : arr_num) {
      		if(i % 3 == 0 || i % 5 == 0) {
             	  g++;
            } else {
                  ng++;
            }
     }
      
     if(ng > 0) {
        System.out.print("DENIED");
     } else {
        System.out.print("APPROVED");
     }
     

	} main {
      
      Scanner sc = new Scanner(System.in);
      
      int loop;
      loop = sc.nextInt();
      
      int [] arr_i = new int [loop];
      
      for(int i = 0; i < loop; i++) {
        	arr_i[i] = sc.nextInt();
      }
      
      sc.close();
     
      ArrayList<Integer> arr_num = new ArrayList<Integer>();
      
     for(int i = 0; i < loop; i++) {
      	if(arr_i[i] % 2 == 0) {
           arr_num.add(arr_i[i]);
        }
     }
      
     int g = 0;
     int ng = 0;
     for(Integer i : arr_num) {
      		if(i % 3 == 0 || i % 5 == 0) {
             	  g++;
            } else {
                  ng++;
            }
     }
      
     if(ng > 0) {
        System.out.print("DENIED");
     } else {
        System.out.print("APPROVED");
     }
     

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int loop; loop loop = sc.nextInt() loop sc.nextInt() sc.nextInt sc int [] arr_i = new int [loop]; arr_i new int [loop] loop for(int i = 0; i < loop; i++) {
        	arr_i[i] = sc.nextInt();
      } int i = 0; int i = 0; i 0 i < loop i loop i++ i++ i {
        	arr_i[i] = sc.nextInt();
      } {
        	arr_i[i] = sc.nextInt();
      } arr_i[i] = sc.nextInt() arr_i[i] arr_i i sc.nextInt() sc.nextInt sc sc.close() sc.close sc ArrayList<Integer> arr_num = new ArrayList<Integer>(); arr_num new ArrayList<Integer>() for(int i = 0; i < loop; i++) {
      	if(arr_i[i] % 2 == 0) {
           arr_num.add(arr_i[i]);
        }
     } int i = 0; int i = 0; i 0 i < loop i loop i++ i++ i {
      	if(arr_i[i] % 2 == 0) {
           arr_num.add(arr_i[i]);
        }
     } {
      	if(arr_i[i] % 2 == 0) {
           arr_num.add(arr_i[i]);
        }
     } if(arr_i[i] % 2 == 0) {
           arr_num.add(arr_i[i]);
        } arr_i[i] % 2 == 0 arr_i[i] % 2 arr_i[i] arr_i i 2 0 {
           arr_num.add(arr_i[i]);
        } arr_num.add(arr_i[i]) arr_num.add arr_num arr_i[i] arr_i i int g = 0; g 0 int ng = 0; ng 0 for(Integer i : arr_num) {
      		if(i % 3 == 0 || i % 5 == 0) {
             	  g++;
            } else {
                  ng++;
            }
     } Integer i arr_num {
      		if(i % 3 == 0 || i % 5 == 0) {
             	  g++;
            } else {
                  ng++;
            }
     } {
      		if(i % 3 == 0 || i % 5 == 0) {
             	  g++;
            } else {
                  ng++;
            }
     } if(i % 3 == 0 || i % 5 == 0) {
             	  g++;
            } else {
                  ng++;
            } i % 3 == 0 || i % 5 == 0 i % 3 == 0 i % 3 i 3 0 i % 5 == 0 i % 5 i 5 0 {
             	  g++;
            } g++ g {
                  ng++;
            } ng++ ng if(ng > 0) {
        System.out.print("DENIED");
     } else {
        System.out.print("APPROVED");
     } ng > 0 ng 0 {
        System.out.print("DENIED");
     } System.out.print("DENIED") System.out.print System.out System System.out "DENIED" {
        System.out.print("APPROVED");
     } System.out.print("APPROVED") System.out.print 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 loop;
      loop = sc.nextInt();
      
      int [] arr_i = new int [loop];
      
      for(int i = 0; i < loop; i++) {
        	arr_i[i] = sc.nextInt();
      }
      
      sc.close();
     
      ArrayList<Integer> arr_num = new ArrayList<Integer>();
      
     for(int i = 0; i < loop; i++) {
      	if(arr_i[i] % 2 == 0) {
           arr_num.add(arr_i[i]);
        }
     }
      
     int g = 0;
     int ng = 0;
     for(Integer i : arr_num) {
      		if(i % 3 == 0 || i % 5 == 0) {
             	  g++;
            } else {
                  ng++;
            }
     }
      
     if(ng > 0) {
        System.out.print("DENIED");
     } else {
        System.out.print("APPROVED");
     }
     

	}
} public class Main {
 	public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      int loop;
      loop = sc.nextInt();
      
      int [] arr_i = new int [loop];
      
      for(int i = 0; i < loop; i++) {
        	arr_i[i] = sc.nextInt();
      }
      
      sc.close();
     
      ArrayList<Integer> arr_num = new ArrayList<Integer>();
      
     for(int i = 0; i < loop; i++) {
      	if(arr_i[i] % 2 == 0) {
           arr_num.add(arr_i[i]);
        }
     }
      
     int g = 0;
     int ng = 0;
     for(Integer i : arr_num) {
      		if(i % 3 == 0 || i % 5 == 0) {
             	  g++;
            } else {
                  ng++;
            }
     }
      
     if(ng > 0) {
        System.out.print("DENIED");
     } else {
        System.out.print("APPROVED");
     }
     

	}
} Main
import java.util.*;

public class Main {
 	public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      int loop;
      loop = sc.nextInt();
      
      int [] arr_i = new int [loop];
      
      for(int i = 0; i < loop; i++) {
        	arr_i[i] = sc.nextInt();
      }
      
      sc.close();
     
      ArrayList<Integer> arr_num = new ArrayList<Integer>();
      
     for(int i = 0; i < loop; i++) {
      	if(arr_i[i] % 2 == 0) {
           arr_num.add(arr_i[i]);
        }
     }
      
     int g = 0;
     int ng = 0;
     for(Integer i : arr_num) {
      		if(i % 3 == 0 || i % 5 == 0) {
             	  g++;
            } else {
                  ng++;
            }
     }
      
     if(ng > 0) {
        System.out.print("DENIED");
     } else {
        System.out.print("APPROVED");
     }
     

	}
}
