import java.util.ArrayList;
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

	    Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    ArrayList<Integer> A = new ArrayList<>();

	    for (int i = 0; i < N; i++) {
	    	int even = sc.nextInt();
	    	if (even % 2 == 0) {
	    		A.add(even);
	    	}
	    }

	    boolean flg = true;
	    for (int a : A) {
	    	if ((a % 3 !=0) && (a % 5 != 0)) {
	    		flg = false;
	    		break;
	    	}
	    }
	    
	    if (flg) {
	    	System.out.println("APPROVED");
	    } else {
		    System.out.println("DENIED");
	    }

	  }
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {

	    Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    ArrayList<Integer> A = new ArrayList<>();

	    for (int i = 0; i < N; i++) {
	    	int even = sc.nextInt();
	    	if (even % 2 == 0) {
	    		A.add(even);
	    	}
	    }

	    boolean flg = true;
	    for (int a : A) {
	    	if ((a % 3 !=0) && (a % 5 != 0)) {
	    		flg = false;
	    		break;
	    	}
	    }
	    
	    if (flg) {
	    	System.out.println("APPROVED");
	    } else {
		    System.out.println("DENIED");
	    }

	  }
} Main public static void main(String[] args) {

	    Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    ArrayList<Integer> A = new ArrayList<>();

	    for (int i = 0; i < N; i++) {
	    	int even = sc.nextInt();
	    	if (even % 2 == 0) {
	    		A.add(even);
	    	}
	    }

	    boolean flg = true;
	    for (int a : A) {
	    	if ((a % 3 !=0) && (a % 5 != 0)) {
	    		flg = false;
	    		break;
	    	}
	    }
	    
	    if (flg) {
	    	System.out.println("APPROVED");
	    } else {
		    System.out.println("DENIED");
	    }

	  } main {

	    Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    ArrayList<Integer> A = new ArrayList<>();

	    for (int i = 0; i < N; i++) {
	    	int even = sc.nextInt();
	    	if (even % 2 == 0) {
	    		A.add(even);
	    	}
	    }

	    boolean flg = true;
	    for (int a : A) {
	    	if ((a % 3 !=0) && (a % 5 != 0)) {
	    		flg = false;
	    		break;
	    	}
	    }
	    
	    if (flg) {
	    	System.out.println("APPROVED");
	    } else {
		    System.out.println("DENIED");
	    }

	  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc ArrayList<Integer> A = new ArrayList<>(); A new ArrayList<>() for (int i = 0; i < N; i++) {
	    	int even = sc.nextInt();
	    	if (even % 2 == 0) {
	    		A.add(even);
	    	}
	    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
	    	int even = sc.nextInt();
	    	if (even % 2 == 0) {
	    		A.add(even);
	    	}
	    } {
	    	int even = sc.nextInt();
	    	if (even % 2 == 0) {
	    		A.add(even);
	    	}
	    } int even = sc.nextInt(); even sc.nextInt() sc.nextInt sc if (even % 2 == 0) {
	    		A.add(even);
	    	} even % 2 == 0 even % 2 even 2 0 {
	    		A.add(even);
	    	} A.add(even) A.add A even boolean flg = true; flg true for (int a : A) {
	    	if ((a % 3 !=0) && (a % 5 != 0)) {
	    		flg = false;
	    		break;
	    	}
	    } int a A {
	    	if ((a % 3 !=0) && (a % 5 != 0)) {
	    		flg = false;
	    		break;
	    	}
	    } {
	    	if ((a % 3 !=0) && (a % 5 != 0)) {
	    		flg = false;
	    		break;
	    	}
	    } if ((a % 3 !=0) && (a % 5 != 0)) {
	    		flg = false;
	    		break;
	    	} (a % 3 !=0) && (a % 5 != 0) (a % 3 !=0) a % 3 a 3 0 (a % 5 != 0) a % 5 a 5 0 {
	    		flg = false;
	    		break;
	    	} flg = false flg false break; if (flg) {
	    	System.out.println("APPROVED");
	    } else {
		    System.out.println("DENIED");
	    } flg {
	    	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.util.ArrayList;
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

	    Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    ArrayList<Integer> A = new ArrayList<>();

	    for (int i = 0; i < N; i++) {
	    	int even = sc.nextInt();
	    	if (even % 2 == 0) {
	    		A.add(even);
	    	}
	    }

	    boolean flg = true;
	    for (int a : A) {
	    	if ((a % 3 !=0) && (a % 5 != 0)) {
	    		flg = false;
	    		break;
	    	}
	    }
	    
	    if (flg) {
	    	System.out.println("APPROVED");
	    } else {
		    System.out.println("DENIED");
	    }

	  }
}