import java.util.Scanner;

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

class Main{
	public static void main(String[] args) {
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		boolean flag = true;
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a % 2 == 0 && !(a % 3 == 0 || a % 5 == 0)) {
				flag = false;
				break;
			}
		}
		if (flag){
			System.out.println("APPROVED");
		}else {
			System.out.println("DENIED");
		}
	}
}