import java.util.Scanner;

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

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

} Main
import java.util.Scanner;

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

}
