import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean isApproved = true;
		for(int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if(x % 2 == 0) {
				if(x % 3 == 0 || x % 5 == 0) continue;
			} else {
				continue;
			}
			isApproved = false;
		}
		if(isApproved) System.out.println("APPROVED");
		else System.out.println("DENIED");
		scan.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean isApproved = true;
		for(int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if(x % 2 == 0) {
				if(x % 3 == 0 || x % 5 == 0) continue;
			} else {
				continue;
			}
			isApproved = false;
		}
		if(isApproved) System.out.println("APPROVED");
		else System.out.println("DENIED");
		scan.close();
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean isApproved = true;
		for(int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if(x % 2 == 0) {
				if(x % 3 == 0 || x % 5 == 0) continue;
			} else {
				continue;
			}
			isApproved = false;
		}
		if(isApproved) System.out.println("APPROVED");
		else System.out.println("DENIED");
		scan.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean isApproved = true;
		for(int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if(x % 2 == 0) {
				if(x % 3 == 0 || x % 5 == 0) continue;
			} else {
				continue;
			}
			isApproved = false;
		}
		if(isApproved) System.out.println("APPROVED");
		else System.out.println("DENIED");
		scan.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean isApproved = true;
		for(int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if(x % 2 == 0) {
				if(x % 3 == 0 || x % 5 == 0) continue;
			} else {
				continue;
			}
			isApproved = false;
		}
		if(isApproved) System.out.println("APPROVED");
		else System.out.println("DENIED");
		scan.close();
	}

}
