import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int c=0;
		int arr[]=new int[n];
		for(int i=0;i<n;i++)
		{
			arr[i]=in.nextInt();
			if(arr[i]%2==0 && c==0)
			{
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			}
		}
		if(c==0)
		{
		System.out.println("APPROVED");
		}
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int c=0;
		int arr[]=new int[n];
		for(int i=0;i<n;i++)
		{
			arr[i]=in.nextInt();
			if(arr[i]%2==0 && c==0)
			{
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			}
		}
		if(c==0)
		{
		System.out.println("APPROVED");
		}
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int c=0;
		int arr[]=new int[n];
		for(int i=0;i<n;i++)
		{
			arr[i]=in.nextInt();
			if(arr[i]%2==0 && c==0)
			{
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			}
		}
		if(c==0)
		{
		System.out.println("APPROVED");
		}
	} main {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int c=0;
		int arr[]=new int[n];
		for(int i=0;i<n;i++)
		{
			arr[i]=in.nextInt();
			if(arr[i]%2==0 && c==0)
			{
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			}
		}
		if(c==0)
		{
		System.out.println("APPROVED");
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n=in.nextInt(); n in.nextInt() in.nextInt in int c=0; c 0 int arr[]=new int[n]; arr new int[n] n for(int i=0;i<n;i++)
		{
			arr[i]=in.nextInt();
			if(arr[i]%2==0 && c==0)
			{
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			arr[i]=in.nextInt();
			if(arr[i]%2==0 && c==0)
			{
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			}
		} {
			arr[i]=in.nextInt();
			if(arr[i]%2==0 && c==0)
			{
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			}
		} arr[i]=in.nextInt() arr[i] arr i in.nextInt() in.nextInt in if(arr[i]%2==0 && c==0)
			{
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			} arr[i]%2==0 && c==0 arr[i]%2==0 arr[i]%2 arr[i] arr i 2 0 c==0 c 0 {
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			} if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				} arr[i]%3!=0 && arr[i]%5!=0 arr[i]%3!=0 arr[i]%3 arr[i] arr i 3 0 arr[i]%5!=0 arr[i]%5 arr[i] arr i 5 0 {
					System.out.println("DENIED");
					c=1;
				} System.out.println("DENIED") System.out.println System.out System System.out "DENIED" c=1 c 1 if(c==0)
		{
		System.out.println("APPROVED");
		} c==0 c 0 {
		System.out.println("APPROVED");
		} 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) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int c=0;
		int arr[]=new int[n];
		for(int i=0;i<n;i++)
		{
			arr[i]=in.nextInt();
			if(arr[i]%2==0 && c==0)
			{
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			}
		}
		if(c==0)
		{
		System.out.println("APPROVED");
		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int c=0;
		int arr[]=new int[n];
		for(int i=0;i<n;i++)
		{
			arr[i]=in.nextInt();
			if(arr[i]%2==0 && c==0)
			{
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			}
		}
		if(c==0)
		{
		System.out.println("APPROVED");
		}
	}
} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int c=0;
		int arr[]=new int[n];
		for(int i=0;i<n;i++)
		{
			arr[i]=in.nextInt();
			if(arr[i]%2==0 && c==0)
			{
				if(arr[i]%3!=0 && arr[i]%5!=0)
				{
					System.out.println("DENIED");
					c=1;
				}
			}
		}
		if(c==0)
		{
		System.out.println("APPROVED");
		}
	}
}