import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int count = 0;
		for (int i = 0; i < N; i++) {
			int x = scanner.nextInt();
			if (x % 2 == 0) {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			}
		}

		if (count > 0) {
			System.out.println("DENIED");
		} else {
			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 = scanner.nextInt();
		int count = 0;
		for (int i = 0; i < N; i++) {
			int x = scanner.nextInt();
			if (x % 2 == 0) {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			}
		}

		if (count > 0) {
			System.out.println("DENIED");
		} else {
			System.out.println("APPROVED");
		}
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int count = 0;
		for (int i = 0; i < N; i++) {
			int x = scanner.nextInt();
			if (x % 2 == 0) {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			}
		}

		if (count > 0) {
			System.out.println("DENIED");
		} else {
			System.out.println("APPROVED");
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int count = 0;
		for (int i = 0; i < N; i++) {
			int x = scanner.nextInt();
			if (x % 2 == 0) {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			}
		}

		if (count > 0) {
			System.out.println("DENIED");
		} else {
			System.out.println("APPROVED");
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int count = 0; count 0 for (int i = 0; i < N; i++) {
			int x = scanner.nextInt();
			if (x % 2 == 0) {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int x = scanner.nextInt();
			if (x % 2 == 0) {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			}
		} {
			int x = scanner.nextInt();
			if (x % 2 == 0) {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			}
		} int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner if (x % 2 == 0) {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			} x % 2 == 0 x % 2 x 2 0 {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			} if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				} x % 3 != 0 x % 3 x 3 0 {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				} if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					} x % 5 != 0 x % 5 x 5 0 {
						count += 1;
						//System.out.println(x);
					} count += 1 count 1 if (count > 0) {
			System.out.println("DENIED");
		} else {
			System.out.println("APPROVED");
		} count > 0 count 0 {
			System.out.println("DENIED");
		} System.out.println("DENIED") System.out.println System.out System System.out "DENIED" {
			System.out.println("APPROVED");
		} 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 = scanner.nextInt();
		int count = 0;
		for (int i = 0; i < N; i++) {
			int x = scanner.nextInt();
			if (x % 2 == 0) {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			}
		}

		if (count > 0) {
			System.out.println("DENIED");
		} else {
			System.out.println("APPROVED");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int count = 0;
		for (int i = 0; i < N; i++) {
			int x = scanner.nextInt();
			if (x % 2 == 0) {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			}
		}

		if (count > 0) {
			System.out.println("DENIED");
		} else {
			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 = scanner.nextInt();
		int count = 0;
		for (int i = 0; i < N; i++) {
			int x = scanner.nextInt();
			if (x % 2 == 0) {
				if (x % 3 != 0) {
					if (x % 5 != 0) {
						count += 1;
						//System.out.println(x);
					}
				}
			}
		}

		if (count > 0) {
			System.out.println("DENIED");
		} else {
			System.out.println("APPROVED");
		}
	}
}
