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