import java.io.InputStream;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] A = nextIntArray(sc, N);

		sc.close();

		for (int n : A) {

			if (n % 2 == 0) {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} else {
				// ok
			}
		}
		out.println("APPROVED");

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] A = nextIntArray(sc, N);

		sc.close();

		for (int n : A) {

			if (n % 2 == 0) {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} else {
				// ok
			}
		}
		out.println("APPROVED");

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} Main InputStream in = System.in; in System.in System System.in PrintStream out = System.out; out System.out System System.out public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] A = nextIntArray(sc, N);

		sc.close();

		for (int n : A) {

			if (n % 2 == 0) {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} else {
				// ok
			}
		}
		out.println("APPROVED");

	} _main {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] A = nextIntArray(sc, N);

		sc.close();

		for (int n : A) {

			if (n % 2 == 0) {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} else {
				// ok
			}
		}
		out.println("APPROVED");

	} Scanner sc = new Scanner(in); sc new Scanner(in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] A = nextIntArray(sc, N); A nextIntArray(sc, N) nextIntArray sc N sc.close() sc.close sc for (int n : A) {

			if (n % 2 == 0) {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} else {
				// ok
			}
		} int n A {

			if (n % 2 == 0) {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} else {
				// ok
			}
		} {

			if (n % 2 == 0) {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} else {
				// ok
			}
		} if (n % 2 == 0) {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} else {
				// ok
			} n % 2 == 0 n % 2 n 2 0 {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				} n % 3 == 0 || n % 5 == 0 n % 3 == 0 n % 3 n 3 0 n % 5 == 0 n % 5 n 5 0 {
					// ok
				} {
					out.println("DENIED");
					return;
				} out.println("DENIED") out.println out "DENIED" return; {
				// ok
			} out.println("APPROVED") out.println out "APPROVED" String[] args args public static void main(String[] args) {
		new Main()._main(args);
	} main {
		new Main()._main(args);
	} new Main()._main(args) new Main()._main new Main() args String[] args args @SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	} nextIntArray {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	} int[] result = new int[n]; result new int[n] n for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			result[i] = sc.nextInt();
		} {
			result[i] = sc.nextInt();
		} result[i] = sc.nextInt() result[i] result i sc.nextInt() sc.nextInt sc return result; result Scanner sc sc int n n public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] A = nextIntArray(sc, N);

		sc.close();

		for (int n : A) {

			if (n % 2 == 0) {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} else {
				// ok
			}
		}
		out.println("APPROVED");

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] A = nextIntArray(sc, N);

		sc.close();

		for (int n : A) {

			if (n % 2 == 0) {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} else {
				// ok
			}
		}
		out.println("APPROVED");

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} Main
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] A = nextIntArray(sc, N);

		sc.close();

		for (int n : A) {

			if (n % 2 == 0) {
				if (n % 3 == 0 || n % 5 == 0) {
					// ok
				} else {
					out.println("DENIED");
					return;
				}
			} else {
				// ok
			}
		}
		out.println("APPROVED");

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
}
