import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if (x % 2 == 0) {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			}
		}
		
		if (cnt == 0) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}
	}

} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if (x % 2 == 0) {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			}
		}
		
		if (cnt == 0) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if (x % 2 == 0) {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			}
		}
		
		if (cnt == 0) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if (x % 2 == 0) {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			}
		}
		
		if (cnt == 0) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int cnt = 0; cnt 0 for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if (x % 2 == 0) {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int x = scan.nextInt();
			if (x % 2 == 0) {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			}
		} {
			int x = scan.nextInt();
			if (x % 2 == 0) {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			}
		} int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan if (x % 2 == 0) {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			} x % 2 == 0 x % 2 x 2 0 {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			} cnt++ cnt if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				} x %3 == 0 || x % 5 == 0 x %3 == 0 x %3 x 3 0 x % 5 == 0 x % 5 x 5 0 {
					cnt--;
				} cnt-- cnt if (cnt == 0) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		} cnt == 0 cnt 0 {
			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" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if (x % 2 == 0) {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			}
		}
		
		if (cnt == 0) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if (x % 2 == 0) {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			}
		}
		
		if (cnt == 0) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}
	}

} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			if (x % 2 == 0) {
				cnt++;
				if (x %3 == 0 || x % 5 == 0) {
					cnt--;
				}
			}
		}
		
		if (cnt == 0) {
			System.out.println("APPROVED");
		} else {
			System.out.println("DENIED");
		}
	}

}