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