import java.util.*;

public class Main {

	public static void main(String[] args) {

		List<Integer> nums = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String a = "DENIED";

		for(int i = 0; i < n; i++) {
			int num = sc.nextInt();
			if(num % 2 == 0) nums.add(num);
		}

		if(nums.size() == 0) {
			a = "APPROVED";
		} else {
			for(int i = 0; i < nums.size(); i++) {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			}
		}

		System.out.println(a);
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {

		List<Integer> nums = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String a = "DENIED";

		for(int i = 0; i < n; i++) {
			int num = sc.nextInt();
			if(num % 2 == 0) nums.add(num);
		}

		if(nums.size() == 0) {
			a = "APPROVED";
		} else {
			for(int i = 0; i < nums.size(); i++) {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			}
		}

		System.out.println(a);
	}
} Main public static void main(String[] args) {

		List<Integer> nums = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String a = "DENIED";

		for(int i = 0; i < n; i++) {
			int num = sc.nextInt();
			if(num % 2 == 0) nums.add(num);
		}

		if(nums.size() == 0) {
			a = "APPROVED";
		} else {
			for(int i = 0; i < nums.size(); i++) {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			}
		}

		System.out.println(a);
	} main {

		List<Integer> nums = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String a = "DENIED";

		for(int i = 0; i < n; i++) {
			int num = sc.nextInt();
			if(num % 2 == 0) nums.add(num);
		}

		if(nums.size() == 0) {
			a = "APPROVED";
		} else {
			for(int i = 0; i < nums.size(); i++) {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			}
		}

		System.out.println(a);
	} List<Integer> nums = new ArrayList<>(); nums new ArrayList<>() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String a = "DENIED"; a "DENIED" for(int i = 0; i < n; i++) {
			int num = sc.nextInt();
			if(num % 2 == 0) nums.add(num);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int num = sc.nextInt();
			if(num % 2 == 0) nums.add(num);
		} {
			int num = sc.nextInt();
			if(num % 2 == 0) nums.add(num);
		} int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if(num % 2 == 0) nums.add(num); num % 2 == 0 num % 2 num 2 0 nums.add(num) nums.add nums num if(nums.size() == 0) {
			a = "APPROVED";
		} else {
			for(int i = 0; i < nums.size(); i++) {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			}
		} nums.size() == 0 nums.size() nums.size nums 0 {
			a = "APPROVED";
		} a = "APPROVED" a "APPROVED" {
			for(int i = 0; i < nums.size(); i++) {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			}
		} for(int i = 0; i < nums.size(); i++) {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			} int i = 0; int i = 0; i 0 i < nums.size() i nums.size() nums.size nums i++ i++ i {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			} {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			} if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				} nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0 nums.get(i) % 3 == 0 nums.get(i) % 3 nums.get(i) nums.get nums i 3 0 nums.get(i) % 5 == 0 nums.get(i) % 5 nums.get(i) nums.get nums i 5 0 {
					if(i == nums.size() - 1) a = "APPROVED";
				} if(i == nums.size() - 1) a = "APPROVED"; i == nums.size() - 1 i nums.size() - 1 nums.size() nums.size nums 1 a = "APPROVED" a "APPROVED" {
					break;
				} break; System.out.println(a) System.out.println System.out System System.out a String[] args args public class Main {

	public static void main(String[] args) {

		List<Integer> nums = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String a = "DENIED";

		for(int i = 0; i < n; i++) {
			int num = sc.nextInt();
			if(num % 2 == 0) nums.add(num);
		}

		if(nums.size() == 0) {
			a = "APPROVED";
		} else {
			for(int i = 0; i < nums.size(); i++) {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			}
		}

		System.out.println(a);
	}
} public class Main {

	public static void main(String[] args) {

		List<Integer> nums = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String a = "DENIED";

		for(int i = 0; i < n; i++) {
			int num = sc.nextInt();
			if(num % 2 == 0) nums.add(num);
		}

		if(nums.size() == 0) {
			a = "APPROVED";
		} else {
			for(int i = 0; i < nums.size(); i++) {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			}
		}

		System.out.println(a);
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {

		List<Integer> nums = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String a = "DENIED";

		for(int i = 0; i < n; i++) {
			int num = sc.nextInt();
			if(num % 2 == 0) nums.add(num);
		}

		if(nums.size() == 0) {
			a = "APPROVED";
		} else {
			for(int i = 0; i < nums.size(); i++) {
				if(nums.get(i) % 3 == 0 || nums.get(i) % 5 == 0) {
					if(i == nums.size() - 1) a = "APPROVED";
				} else {
					break;
				}
			}
		}

		System.out.println(a);
	}
}