import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(!isValid(a)) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED");
	}

	private static boolean isValid(int num) {
		if(num % 2 != 0) {
			return true;
		}

		if(num % 3 == 0) {
			return true;
		}

		if(num % 5 == 0) {
			return true;
		}

		return false;
	}
} 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();

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(!isValid(a)) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED");
	}

	private static boolean isValid(int num) {
		if(num % 2 != 0) {
			return true;
		}

		if(num % 3 == 0) {
			return true;
		}

		if(num % 5 == 0) {
			return true;
		}

		return false;
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(!isValid(a)) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED");
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(!isValid(a)) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(!isValid(a)) {
				System.out.println("DENIED");
				return;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int a = sc.nextInt();
			if(!isValid(a)) {
				System.out.println("DENIED");
				return;
			}
		} {
			int a = sc.nextInt();
			if(!isValid(a)) {
				System.out.println("DENIED");
				return;
			}
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if(!isValid(a)) {
				System.out.println("DENIED");
				return;
			} !isValid(a) isValid(a) isValid a {
				System.out.println("DENIED");
				return;
			} System.out.println("DENIED") System.out.println System.out System System.out "DENIED" return; System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" String[] args args private static boolean isValid(int num) {
		if(num % 2 != 0) {
			return true;
		}

		if(num % 3 == 0) {
			return true;
		}

		if(num % 5 == 0) {
			return true;
		}

		return false;
	} isValid {
		if(num % 2 != 0) {
			return true;
		}

		if(num % 3 == 0) {
			return true;
		}

		if(num % 5 == 0) {
			return true;
		}

		return false;
	} if(num % 2 != 0) {
			return true;
		} num % 2 != 0 num % 2 num 2 0 {
			return true;
		} return true; true if(num % 3 == 0) {
			return true;
		} num % 3 == 0 num % 3 num 3 0 {
			return true;
		} return true; true if(num % 5 == 0) {
			return true;
		} num % 5 == 0 num % 5 num 5 0 {
			return true;
		} return true; true return false; false int num num public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(!isValid(a)) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED");
	}

	private static boolean isValid(int num) {
		if(num % 2 != 0) {
			return true;
		}

		if(num % 3 == 0) {
			return true;
		}

		if(num % 5 == 0) {
			return true;
		}

		return false;
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(!isValid(a)) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED");
	}

	private static boolean isValid(int num) {
		if(num % 2 != 0) {
			return true;
		}

		if(num % 3 == 0) {
			return true;
		}

		if(num % 5 == 0) {
			return true;
		}

		return false;
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(!isValid(a)) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED");
	}

	private static boolean isValid(int num) {
		if(num % 2 != 0) {
			return true;
		}

		if(num % 3 == 0) {
			return true;
		}

		if(num % 5 == 0) {
			return true;
		}

		return false;
	}
}