
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		String[] tmp  = scanner.nextLine().split(" ");

		for(int i = 0; i < n; i++) {

			int now = Integer.parseInt(tmp[i]);

			if(now % 2 == 0) {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

				}
			}
		}
		System.out.println("APPROVED");
	}
} import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		String[] tmp  = scanner.nextLine().split(" ");

		for(int i = 0; i < n; i++) {

			int now = Integer.parseInt(tmp[i]);

			if(now % 2 == 0) {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

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

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		String[] tmp  = scanner.nextLine().split(" ");

		for(int i = 0; i < n; i++) {

			int now = Integer.parseInt(tmp[i]);

			if(now % 2 == 0) {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

				}
			}
		}
		System.out.println("APPROVED");
	} main {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		String[] tmp  = scanner.nextLine().split(" ");

		for(int i = 0; i < n; i++) {

			int now = Integer.parseInt(tmp[i]);

			if(now % 2 == 0) {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

				}
			}
		}
		System.out.println("APPROVED");
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.parseInt(scanner.nextLine()); n Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner String[] tmp  = scanner.nextLine().split(" "); tmp scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " for(int i = 0; i < n; i++) {

			int now = Integer.parseInt(tmp[i]);

			if(now % 2 == 0) {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {

			int now = Integer.parseInt(tmp[i]);

			if(now % 2 == 0) {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

				}
			}
		} {

			int now = Integer.parseInt(tmp[i]);

			if(now % 2 == 0) {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

				}
			}
		} int now = Integer.parseInt(tmp[i]); now Integer.parseInt(tmp[i]) Integer.parseInt Integer tmp[i] tmp i if(now % 2 == 0) {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

				}
			} now % 2 == 0 now % 2 now 2 0 {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

				}
			} if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

				} now % 3 != 0 && now % 5 != 0 now % 3 != 0 now % 3 now 3 0 now % 5 != 0 now % 5 now 5 0 {

					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 scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		String[] tmp  = scanner.nextLine().split(" ");

		for(int i = 0; i < n; i++) {

			int now = Integer.parseInt(tmp[i]);

			if(now % 2 == 0) {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

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

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		String[] tmp  = scanner.nextLine().split(" ");

		for(int i = 0; i < n; i++) {

			int now = Integer.parseInt(tmp[i]);

			if(now % 2 == 0) {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

				}
			}
		}
		System.out.println("APPROVED");
	}
} Main

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		String[] tmp  = scanner.nextLine().split(" ");

		for(int i = 0; i < n; i++) {

			int now = Integer.parseInt(tmp[i]);

			if(now % 2 == 0) {

				if(now % 3 != 0 && now % 5 != 0) {

					System.out.println("DENIED");
					return;

				}
			}
		}
		System.out.println("APPROVED");
	}
}