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[] = new int[n];

		for(int i=0;i<n;i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		for(int j=0;j < n;j++) {
			if(a[j] % 2 == 0) {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			}
		}

		System.out.println("APPROVED");

		sc.close();

	}

} 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[] = new int[n];

		for(int i=0;i<n;i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		for(int j=0;j < n;j++) {
			if(a[j] % 2 == 0) {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			}
		}

		System.out.println("APPROVED");

		sc.close();

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int a[] = new int[n];

		for(int i=0;i<n;i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		for(int j=0;j < n;j++) {
			if(a[j] % 2 == 0) {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			}
		}

		System.out.println("APPROVED");

		sc.close();

	} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int a[] = new int[n];

		for(int i=0;i<n;i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		for(int j=0;j < n;j++) {
			if(a[j] % 2 == 0) {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			}
		}

		System.out.println("APPROVED");

		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int a[] = new int[n]; a new int[n] n for(int i=0;i<n;i++) {
			a[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			a[i] = sc.nextInt();
		} {
			a[i] = sc.nextInt();
		} a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc sc.close() sc.close sc for(int j=0;j < n;j++) {
			if(a[j] % 2 == 0) {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			}
		} int j=0; int j=0; j 0 j < n j n j++ j++ j {
			if(a[j] % 2 == 0) {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			}
		} {
			if(a[j] % 2 == 0) {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			}
		} if(a[j] % 2 == 0) {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			} a[j] % 2 == 0 a[j] % 2 a[j] a j 2 0 {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			} if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				} a[j] % 3 != 0 && a[j] % 5 != 0 a[j] % 3 != 0 a[j] % 3 a[j] a j 3 0 a[j] % 5 != 0 a[j] % 5 a[j] a j 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" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int a[] = new int[n];

		for(int i=0;i<n;i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		for(int j=0;j < n;j++) {
			if(a[j] % 2 == 0) {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			}
		}

		System.out.println("APPROVED");

		sc.close();

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int a[] = new int[n];

		for(int i=0;i<n;i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		for(int j=0;j < n;j++) {
			if(a[j] % 2 == 0) {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			}
		}

		System.out.println("APPROVED");

		sc.close();

	}

} Main
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[] = new int[n];

		for(int i=0;i<n;i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		for(int j=0;j < n;j++) {
			if(a[j] % 2 == 0) {
				if(a[j] % 3 != 0 && a[j] % 5 != 0) {
					System.out.println("DENIED");
					return;
				}
			}
		}

		System.out.println("APPROVED");

		sc.close();

	}

}
