import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int count = 0;
		int ans = 0;
		for (int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			if(A[i] % 2 == 0){
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			}
		}
		if(ans == count){
			System.out.println("APPROVED");
		}
		else{
			System.out.println("DENIED");
		}
		stdIn.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int count = 0;
		int ans = 0;
		for (int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			if(A[i] % 2 == 0){
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			}
		}
		if(ans == count){
			System.out.println("APPROVED");
		}
		else{
			System.out.println("DENIED");
		}
		stdIn.close();
	}
} Main public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int count = 0;
		int ans = 0;
		for (int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			if(A[i] % 2 == 0){
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			}
		}
		if(ans == count){
			System.out.println("APPROVED");
		}
		else{
			System.out.println("DENIED");
		}
		stdIn.close();
	} main {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int count = 0;
		int ans = 0;
		for (int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			if(A[i] % 2 == 0){
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			}
		}
		if(ans == count){
			System.out.println("APPROVED");
		}
		else{
			System.out.println("DENIED");
		}
		stdIn.close();
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int A[] = new int[N]; A new int[N] N int count = 0; count 0 int ans = 0; ans 0 for (int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			if(A[i] % 2 == 0){
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = stdIn.nextInt();
			if(A[i] % 2 == 0){
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			}
		} {
			A[i] = stdIn.nextInt();
			if(A[i] % 2 == 0){
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			}
		} A[i] = stdIn.nextInt() A[i] A i stdIn.nextInt() stdIn.nextInt stdIn if(A[i] % 2 == 0){
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			} A[i] % 2 == 0 A[i] % 2 A[i] A i 2 0 {
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			} count++ count if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				} A[i] % 3 == 0 || A[i] % 5 == 0 A[i] % 3 == 0 A[i] % 3 A[i] A i 3 0 A[i] % 5 == 0 A[i] % 5 A[i] A i 5 0 {
					ans++;
				} ans++ ans if(ans == count){
			System.out.println("APPROVED");
		}
		else{
			System.out.println("DENIED");
		} ans == count ans count {
			System.out.println("APPROVED");
		} System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" {
			System.out.println("DENIED");
		} System.out.println("DENIED") System.out.println System.out System System.out "DENIED" stdIn.close() stdIn.close stdIn String[] args args public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int count = 0;
		int ans = 0;
		for (int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			if(A[i] % 2 == 0){
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			}
		}
		if(ans == count){
			System.out.println("APPROVED");
		}
		else{
			System.out.println("DENIED");
		}
		stdIn.close();
	}
} public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int count = 0;
		int ans = 0;
		for (int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			if(A[i] % 2 == 0){
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			}
		}
		if(ans == count){
			System.out.println("APPROVED");
		}
		else{
			System.out.println("DENIED");
		}
		stdIn.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int count = 0;
		int ans = 0;
		for (int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			if(A[i] % 2 == 0){
				count++;
				if(A[i] % 3 == 0 || A[i] % 5 == 0){
					ans++;
				}
			}
		}
		if(ans == count){
			System.out.println("APPROVED");
		}
		else{
			System.out.println("DENIED");
		}
		stdIn.close();
	}
}