import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	int n = sca.nextInt();
	int[] ai = new int[n];
	for(int i = 0; i < n; i++) {
		ai[i] = sca.nextInt();
	}

	boolean bool = true;
	for(int i = 0; i < n; i++) {
		if(ai[i] % 2 == 0) {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		}
	}

	if(bool == true) {
		System.out.println("APPROVED");
	}
	else {
		System.out.println("DENIED");
	}
	// ArrayList<String> list = new ArrayList<String>();
	// list.add("");

	// 後始末
	sca.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	int n = sca.nextInt();
	int[] ai = new int[n];
	for(int i = 0; i < n; i++) {
		ai[i] = sca.nextInt();
	}

	boolean bool = true;
	for(int i = 0; i < n; i++) {
		if(ai[i] % 2 == 0) {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		}
	}

	if(bool == true) {
		System.out.println("APPROVED");
	}
	else {
		System.out.println("DENIED");
	}
	// ArrayList<String> list = new ArrayList<String>();
	// list.add("");

	// 後始末
	sca.close();
	}
} Main public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	int n = sca.nextInt();
	int[] ai = new int[n];
	for(int i = 0; i < n; i++) {
		ai[i] = sca.nextInt();
	}

	boolean bool = true;
	for(int i = 0; i < n; i++) {
		if(ai[i] % 2 == 0) {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		}
	}

	if(bool == true) {
		System.out.println("APPROVED");
	}
	else {
		System.out.println("DENIED");
	}
	// ArrayList<String> list = new ArrayList<String>();
	// list.add("");

	// 後始末
	sca.close();
	} main {

	Scanner sca = new Scanner(System.in);
	int n = sca.nextInt();
	int[] ai = new int[n];
	for(int i = 0; i < n; i++) {
		ai[i] = sca.nextInt();
	}

	boolean bool = true;
	for(int i = 0; i < n; i++) {
		if(ai[i] % 2 == 0) {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		}
	}

	if(bool == true) {
		System.out.println("APPROVED");
	}
	else {
		System.out.println("DENIED");
	}
	// ArrayList<String> list = new ArrayList<String>();
	// list.add("");

	// 後始末
	sca.close();
	} Scanner sca = new Scanner(System.in); sca new Scanner(System.in) int n = sca.nextInt(); n sca.nextInt() sca.nextInt sca int[] ai = new int[n]; ai new int[n] n for(int i = 0; i < n; i++) {
		ai[i] = sca.nextInt();
	} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
		ai[i] = sca.nextInt();
	} {
		ai[i] = sca.nextInt();
	} ai[i] = sca.nextInt() ai[i] ai i sca.nextInt() sca.nextInt sca boolean bool = true; bool true for(int i = 0; i < n; i++) {
		if(ai[i] % 2 == 0) {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		}
	} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
		if(ai[i] % 2 == 0) {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		}
	} {
		if(ai[i] % 2 == 0) {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		}
	} if(ai[i] % 2 == 0) {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		} ai[i] % 2 == 0 ai[i] % 2 ai[i] ai i 2 0 {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		} if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			} ai[i] % 3 == 0 || ai[i] % 5 == 0 ai[i] % 3 == 0 ai[i] % 3 ai[i] ai i 3 0 ai[i] % 5 == 0 ai[i] % 5 ai[i] ai i 5 0 {
				continue;
			} continue; {
				bool = false;
				break;
			} bool = false bool false break; if(bool == true) {
		System.out.println("APPROVED");
	}
	else {
		System.out.println("DENIED");
	} bool == true bool true {
		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" sca.close() sca.close sca String[] args args public class Main {

	public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	int n = sca.nextInt();
	int[] ai = new int[n];
	for(int i = 0; i < n; i++) {
		ai[i] = sca.nextInt();
	}

	boolean bool = true;
	for(int i = 0; i < n; i++) {
		if(ai[i] % 2 == 0) {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		}
	}

	if(bool == true) {
		System.out.println("APPROVED");
	}
	else {
		System.out.println("DENIED");
	}
	// ArrayList<String> list = new ArrayList<String>();
	// list.add("");

	// 後始末
	sca.close();
	}
} public class Main {

	public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	int n = sca.nextInt();
	int[] ai = new int[n];
	for(int i = 0; i < n; i++) {
		ai[i] = sca.nextInt();
	}

	boolean bool = true;
	for(int i = 0; i < n; i++) {
		if(ai[i] % 2 == 0) {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		}
	}

	if(bool == true) {
		System.out.println("APPROVED");
	}
	else {
		System.out.println("DENIED");
	}
	// ArrayList<String> list = new ArrayList<String>();
	// list.add("");

	// 後始末
	sca.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	int n = sca.nextInt();
	int[] ai = new int[n];
	for(int i = 0; i < n; i++) {
		ai[i] = sca.nextInt();
	}

	boolean bool = true;
	for(int i = 0; i < n; i++) {
		if(ai[i] % 2 == 0) {
			if(ai[i] % 3 == 0 || ai[i] % 5 == 0) {
				continue;
			}
			else {
				bool = false;
				break;
			}
		}
	}

	if(bool == true) {
		System.out.println("APPROVED");
	}
	else {
		System.out.println("DENIED");
	}
	// ArrayList<String> list = new ArrayList<String>();
	// list.add("");

	// 後始末
	sca.close();
	}
}