import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		String []s=br.readLine().split(" ");
		int evc=0,app=0;
		
		for(int i=0;i<N;i++)
		{
			int x= Integer.parseInt(s[i]);
			
			//if even then check 3 or 5
			if((x&1)!=1)
			{
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			}	
		}
		
		if(evc==app)
			out.println("APPROVED");
		else
			out.println("DENIED");
	
	}
}

 import java.io.*; io.* java import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		String []s=br.readLine().split(" ");
		int evc=0,app=0;
		
		for(int i=0;i<N;i++)
		{
			int x= Integer.parseInt(s[i]);
			
			//if even then check 3 or 5
			if((x&1)!=1)
			{
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			}	
		}
		
		if(evc==app)
			out.println("APPROVED");
		else
			out.println("DENIED");
	
	}
} Main public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		String []s=br.readLine().split(" ");
		int evc=0,app=0;
		
		for(int i=0;i<N;i++)
		{
			int x= Integer.parseInt(s[i]);
			
			//if even then check 3 or 5
			if((x&1)!=1)
			{
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			}	
		}
		
		if(evc==app)
			out.println("APPROVED");
		else
			out.println("DENIED");
	
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		String []s=br.readLine().split(" ");
		int evc=0,app=0;
		
		for(int i=0;i<N;i++)
		{
			int x= Integer.parseInt(s[i]);
			
			//if even then check 3 or 5
			if((x&1)!=1)
			{
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			}	
		}
		
		if(evc==app)
			out.println("APPROVED");
		else
			out.println("DENIED");
	
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String []s=br.readLine().split(" "); s br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int evc=0 evc 0 app=0; app 0 for(int i=0;i<N;i++)
		{
			int x= Integer.parseInt(s[i]);
			
			//if even then check 3 or 5
			if((x&1)!=1)
			{
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			}	
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int x= Integer.parseInt(s[i]);
			
			//if even then check 3 or 5
			if((x&1)!=1)
			{
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			}	
		} {
			int x= Integer.parseInt(s[i]);
			
			//if even then check 3 or 5
			if((x&1)!=1)
			{
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			}	
		} int x= Integer.parseInt(s[i]); x Integer.parseInt(s[i]) Integer.parseInt Integer s[i] s i if((x&1)!=1)
			{
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			} (x&1)!=1 (x&1) x 1 1 {
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			} evc++ evc if(x%3==0 || x%5==0)
					app++; x%3==0 || x%5==0 x%3==0 x%3 x 3 0 x%5==0 x%5 x 5 0 app++ app if(evc==app)
			out.println("APPROVED");
		else
			out.println("DENIED"); evc==app evc app out.println("APPROVED") out.println out "APPROVED" out.println("DENIED") out.println out "DENIED" String []args args public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		String []s=br.readLine().split(" ");
		int evc=0,app=0;
		
		for(int i=0;i<N;i++)
		{
			int x= Integer.parseInt(s[i]);
			
			//if even then check 3 or 5
			if((x&1)!=1)
			{
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			}	
		}
		
		if(evc==app)
			out.println("APPROVED");
		else
			out.println("DENIED");
	
	}
} public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		String []s=br.readLine().split(" ");
		int evc=0,app=0;
		
		for(int i=0;i<N;i++)
		{
			int x= Integer.parseInt(s[i]);
			
			//if even then check 3 or 5
			if((x&1)!=1)
			{
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			}	
		}
		
		if(evc==app)
			out.println("APPROVED");
		else
			out.println("DENIED");
	
	}
} Main
import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		String []s=br.readLine().split(" ");
		int evc=0,app=0;
		
		for(int i=0;i<N;i++)
		{
			int x= Integer.parseInt(s[i]);
			
			//if even then check 3 or 5
			if((x&1)!=1)
			{
				evc++;
				if(x%3==0 || x%5==0)
					app++;		
			}	
		}
		
		if(evc==app)
			out.println("APPROVED");
		else
			out.println("DENIED");
	
	}
}


