import java.util.*;
public class Main {
  
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(int i=0; i<n; i++) {
			a[i] = Integer.parseInt(sc.next());
			// 1個でも条件を満たさなければDENIED
			if(!check(a[i])) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED\n");
		
	}

	// 奇数なら判定しなくていいのでtrue扱い
	// 偶数ならさらに判定する
	private static boolean check(int num) {
		if(num%2 != 0 ) {
			return true;
		}
		if(num%3 == 0 || num%5 == 0) {
			return true;
		}else {
			return false;
		}
	}
} import java.util.*; util.* java public class Main {
  
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(int i=0; i<n; i++) {
			a[i] = Integer.parseInt(sc.next());
			// 1個でも条件を満たさなければDENIED
			if(!check(a[i])) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED\n");
		
	}

	// 奇数なら判定しなくていいのでtrue扱い
	// 偶数ならさらに判定する
	private static boolean check(int num) {
		if(num%2 != 0 ) {
			return true;
		}
		if(num%3 == 0 || num%5 == 0) {
			return true;
		}else {
			return false;
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(int i=0; i<n; i++) {
			a[i] = Integer.parseInt(sc.next());
			// 1個でも条件を満たさなければDENIED
			if(!check(a[i])) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED\n");
		
	} main {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(int i=0; i<n; i++) {
			a[i] = Integer.parseInt(sc.next());
			// 1個でも条件を満たさなければDENIED
			if(!check(a[i])) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED\n");
		
	} 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 int[] a = new int[n]; a new int[n] n for(int i=0; i<n; i++) {
			a[i] = Integer.parseInt(sc.next());
			// 1個でも条件を満たさなければDENIED
			if(!check(a[i])) {
				System.out.println("DENIED");
				return;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			a[i] = Integer.parseInt(sc.next());
			// 1個でも条件を満たさなければDENIED
			if(!check(a[i])) {
				System.out.println("DENIED");
				return;
			}
		} {
			a[i] = Integer.parseInt(sc.next());
			// 1個でも条件を満たさなければDENIED
			if(!check(a[i])) {
				System.out.println("DENIED");
				return;
			}
		} a[i] = Integer.parseInt(sc.next()) a[i] a i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(!check(a[i])) {
				System.out.println("DENIED");
				return;
			} !check(a[i]) check(a[i]) check a[i] a i {
				System.out.println("DENIED");
				return;
			} System.out.println("DENIED") System.out.println System.out System System.out "DENIED" return; System.out.println("APPROVED\n") System.out.println System.out System System.out "APPROVED\n" String[] args args // 奇数なら判定しなくていいのでtrue扱い
	// 偶数ならさらに判定する
	private static boolean check(int num) {
		if(num%2 != 0 ) {
			return true;
		}
		if(num%3 == 0 || num%5 == 0) {
			return true;
		}else {
			return false;
		}
	} check {
		if(num%2 != 0 ) {
			return true;
		}
		if(num%3 == 0 || num%5 == 0) {
			return true;
		}else {
			return false;
		}
	} if(num%2 != 0 ) {
			return true;
		} num%2 != 0 num%2 num 2 0 {
			return true;
		} return true; true if(num%3 == 0 || num%5 == 0) {
			return true;
		}else {
			return false;
		} num%3 == 0 || num%5 == 0 num%3 == 0 num%3 num 3 0 num%5 == 0 num%5 num 5 0 {
			return true;
		} return true; true {
			return false;
		} return false; false int num num public class Main {
  
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(int i=0; i<n; i++) {
			a[i] = Integer.parseInt(sc.next());
			// 1個でも条件を満たさなければDENIED
			if(!check(a[i])) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED\n");
		
	}

	// 奇数なら判定しなくていいのでtrue扱い
	// 偶数ならさらに判定する
	private static boolean check(int num) {
		if(num%2 != 0 ) {
			return true;
		}
		if(num%3 == 0 || num%5 == 0) {
			return true;
		}else {
			return false;
		}
	}
} public class Main {
  
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(int i=0; i<n; i++) {
			a[i] = Integer.parseInt(sc.next());
			// 1個でも条件を満たさなければDENIED
			if(!check(a[i])) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED\n");
		
	}

	// 奇数なら判定しなくていいのでtrue扱い
	// 偶数ならさらに判定する
	private static boolean check(int num) {
		if(num%2 != 0 ) {
			return true;
		}
		if(num%3 == 0 || num%5 == 0) {
			return true;
		}else {
			return false;
		}
	}
} Main
import java.util.*;
public class Main {
  
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(int i=0; i<n; i++) {
			a[i] = Integer.parseInt(sc.next());
			// 1個でも条件を満たさなければDENIED
			if(!check(a[i])) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED\n");
		
	}

	// 奇数なら判定しなくていいのでtrue扱い
	// 偶数ならさらに判定する
	private static boolean check(int num) {
		if(num%2 != 0 ) {
			return true;
		}
		if(num%3 == 0 || num%5 == 0) {
			return true;
		}else {
			return false;
		}
	}
}