import java.util.ArrayList;
import java.util.Scanner;

public class Main {

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

		ArrayList<Integer> lList = new ArrayList<>();

		for (int index = 1; index <= N; index++) {
			lList.add(sc.nextInt());
		}

		for (int i : lList) {
			if (i % 2 == 0) {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				}
			}
		}
		System.out.println("APPROVED ");
	}
} import java.util.ArrayList; ArrayList java.util 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 A = sc.nextInt();

		ArrayList<Integer> lList = new ArrayList<>();

		for (int index = 1; index <= N; index++) {
			lList.add(sc.nextInt());
		}

		for (int i : lList) {
			if (i % 2 == 0) {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				}
			}
		}
		System.out.println("APPROVED ");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		//int A = sc.nextInt();

		ArrayList<Integer> lList = new ArrayList<>();

		for (int index = 1; index <= N; index++) {
			lList.add(sc.nextInt());
		}

		for (int i : lList) {
			if (i % 2 == 0) {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				}
			}
		}
		System.out.println("APPROVED ");
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		//int A = sc.nextInt();

		ArrayList<Integer> lList = new ArrayList<>();

		for (int index = 1; index <= N; index++) {
			lList.add(sc.nextInt());
		}

		for (int i : lList) {
			if (i % 2 == 0) {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					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 ArrayList<Integer> lList = new ArrayList<>(); lList new ArrayList<>() for (int index = 1; index <= N; index++) {
			lList.add(sc.nextInt());
		} int index = 1; int index = 1; index 1 index <= N index N index++ index++ index {
			lList.add(sc.nextInt());
		} {
			lList.add(sc.nextInt());
		} lList.add(sc.nextInt()) lList.add lList sc.nextInt() sc.nextInt sc for (int i : lList) {
			if (i % 2 == 0) {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				}
			}
		} int i lList {
			if (i % 2 == 0) {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				}
			}
		} {
			if (i % 2 == 0) {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				}
			}
		} if (i % 2 == 0) {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				}
			} i % 2 == 0 i % 2 i 2 0 {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				}
			} if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				} i % 3 == 0 || i % 5 == 00 i % 3 == 0 i % 3 i 3 0 i % 5 == 00 i % 5 i 5 00 {
				} {
					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 public class Main {

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

		ArrayList<Integer> lList = new ArrayList<>();

		for (int index = 1; index <= N; index++) {
			lList.add(sc.nextInt());
		}

		for (int i : lList) {
			if (i % 2 == 0) {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				}
			}
		}
		System.out.println("APPROVED ");
	}
} public class Main {

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

		ArrayList<Integer> lList = new ArrayList<>();

		for (int index = 1; index <= N; index++) {
			lList.add(sc.nextInt());
		}

		for (int i : lList) {
			if (i % 2 == 0) {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				}
			}
		}
		System.out.println("APPROVED ");
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

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

		ArrayList<Integer> lList = new ArrayList<>();

		for (int index = 1; index <= N; index++) {
			lList.add(sc.nextInt());
		}

		for (int i : lList) {
			if (i % 2 == 0) {
				if (i % 3 == 0 || i % 5 == 00) {
				} else {
					System.out.println("DENIED");
					return;
				}
			}
		}
		System.out.println("APPROVED ");
	}
}
