import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		boolean check = true;

		//条件分岐
		for(int i = 0; i < list.size(); i++) {
			int number = list.get(i);
			if(number % 2 != 0) {
				continue;
			}else if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			}

		}
		if(check) System.out.println("APPROVED");

	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		boolean check = true;

		//条件分岐
		for(int i = 0; i < list.size(); i++) {
			int number = list.get(i);
			if(number % 2 != 0) {
				continue;
			}else if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			}

		}
		if(check) System.out.println("APPROVED");

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		boolean check = true;

		//条件分岐
		for(int i = 0; i < list.size(); i++) {
			int number = list.get(i);
			if(number % 2 != 0) {
				continue;
			}else if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			}

		}
		if(check) System.out.println("APPROVED");

	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		boolean check = true;

		//条件分岐
		for(int i = 0; i < list.size(); i++) {
			int number = list.get(i);
			if(number % 2 != 0) {
				continue;
			}else if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			}

		}
		if(check) System.out.println("APPROVED");

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ArrayList<Integer> list = new ArrayList<>(); list new ArrayList<>() for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			list.add(Integer.parseInt(sc.next()));
		} {
			list.add(Integer.parseInt(sc.next()));
		} list.add(Integer.parseInt(sc.next())) list.add list Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc boolean check = true; check true for(int i = 0; i < list.size(); i++) {
			int number = list.get(i);
			if(number % 2 != 0) {
				continue;
			}else if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			}

		} int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
			int number = list.get(i);
			if(number % 2 != 0) {
				continue;
			}else if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			}

		} {
			int number = list.get(i);
			if(number % 2 != 0) {
				continue;
			}else if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			}

		} int number = list.get(i); number list.get(i) list.get list i if(number % 2 != 0) {
				continue;
			}else if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			} number % 2 != 0 number % 2 number 2 0 {
				continue;
			} continue; if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			} number % 6 == 0 || number % 10 == 0 number % 6 == 0 number % 6 number 6 0 number % 10 == 0 number % 10 number 10 0 {
				continue;
			} continue; {
				System.out.println("DENIED");
				check = false;
				return;
			} System.out.println("DENIED") System.out.println System.out System System.out "DENIED" check = false check false return; if(check) System.out.println("APPROVED"); check 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 sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		boolean check = true;

		//条件分岐
		for(int i = 0; i < list.size(); i++) {
			int number = list.get(i);
			if(number % 2 != 0) {
				continue;
			}else if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			}

		}
		if(check) System.out.println("APPROVED");

	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		boolean check = true;

		//条件分岐
		for(int i = 0; i < list.size(); i++) {
			int number = list.get(i);
			if(number % 2 != 0) {
				continue;
			}else if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			}

		}
		if(check) System.out.println("APPROVED");

	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		ArrayList<Integer> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		boolean check = true;

		//条件分岐
		for(int i = 0; i < list.size(); i++) {
			int number = list.get(i);
			if(number % 2 != 0) {
				continue;
			}else if(number % 6 == 0 || number % 10 == 0) {
				continue;
			}else {
				System.out.println("DENIED");
				check = false;
				return;
			}

		}
		if(check) System.out.println("APPROVED");

	}
}
