import java.util.*;
public class Main {
    public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
      	int p[] = new int[n1];
      	int err = 0;
      	int cnt = 0;
      	for(int i=0;i<p.length;i++){
          p[i] = Integer.parseInt(sc.next());
          if( p[i]%2==0 ){
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          }
        }
 
      
      	if( err == 0 ){
       	 System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
      	int p[] = new int[n1];
      	int err = 0;
      	int cnt = 0;
      	for(int i=0;i<p.length;i++){
          p[i] = Integer.parseInt(sc.next());
          if( p[i]%2==0 ){
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          }
        }
 
      
      	if( err == 0 ){
       	 System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }
    }
} Main public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
      	int p[] = new int[n1];
      	int err = 0;
      	int cnt = 0;
      	for(int i=0;i<p.length;i++){
          p[i] = Integer.parseInt(sc.next());
          if( p[i]%2==0 ){
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          }
        }
 
      
      	if( err == 0 ){
       	 System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }
    } main {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
      	int p[] = new int[n1];
      	int err = 0;
      	int cnt = 0;
      	for(int i=0;i<p.length;i++){
          p[i] = Integer.parseInt(sc.next());
          if( p[i]%2==0 ){
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          }
        }
 
      
      	if( err == 0 ){
       	 System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n1 = Integer.parseInt(sc.next()); n1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int p[] = new int[n1]; p new int[n1] n1 int err = 0; err 0 int cnt = 0; cnt 0 for(int i=0;i<p.length;i++){
          p[i] = Integer.parseInt(sc.next());
          if( p[i]%2==0 ){
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          }
        } int i=0; int i=0; i 0 i<p.length i p.length p p.length i++ i++ i {
          p[i] = Integer.parseInt(sc.next());
          if( p[i]%2==0 ){
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          }
        } {
          p[i] = Integer.parseInt(sc.next());
          if( p[i]%2==0 ){
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          }
        } p[i] = Integer.parseInt(sc.next()) p[i] p i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if( p[i]%2==0 ){
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          } p[i]%2==0 p[i]%2 p[i] p i 2 0 {
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          } if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            } p[i]%3==0||p[i]%5==0 p[i]%3==0 p[i]%3 p[i] p i 3 0 p[i]%5==0 p[i]%5 p[i] p i 5 0 {
              cnt++;
            } cnt++ cnt {
              err = -1;
            } err = -1 err -1 1 if( err == 0 ){
       	 System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        } err == 0 err 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 public class Main {
    public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
      	int p[] = new int[n1];
      	int err = 0;
      	int cnt = 0;
      	for(int i=0;i<p.length;i++){
          p[i] = Integer.parseInt(sc.next());
          if( p[i]%2==0 ){
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          }
        }
 
      
      	if( err == 0 ){
       	 System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }
    }
} public class Main {
    public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
      	int p[] = new int[n1];
      	int err = 0;
      	int cnt = 0;
      	for(int i=0;i<p.length;i++){
          p[i] = Integer.parseInt(sc.next());
          if( p[i]%2==0 ){
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          }
        }
 
      
      	if( err == 0 ){
       	 System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
      	int p[] = new int[n1];
      	int err = 0;
      	int cnt = 0;
      	for(int i=0;i<p.length;i++){
          p[i] = Integer.parseInt(sc.next());
          if( p[i]%2==0 ){
            if( p[i]%3==0||p[i]%5==0 ){
              cnt++;
            }else{
              err = -1;
            }
          }
        }
 
      
      	if( err == 0 ){
       	 System.out.println("APPROVED");
        }else{
          System.out.println("DENIED");
        }
    }
}