import java.io.*;
import java.util.*;
import java.math.*;
import java.util.regex.Pattern;
class Main
{
		// your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                    int n,c=0;
                    Scanner sc= new Scanner(System.in);
                    n=sc.nextInt(); 
                    int a[]=new int[n];
                    for(int i=0;i<n;i++)
                    {
                        a[i]=sc.nextInt();
                    }
                    for(int i=0;i<n;i++)
                    {
                        if(a[i]%2==0)
                        {
                            if(a[i]%3==0 || a[i]%5==0)
                            {
                                
                            }
                            else
                            {
                                c++;
                            }
                        }
                    }
                    if(c>0)
                    {
                        System.out.println("DENIED");
                    }
                    else
                    {
                        System.out.println("APPROVED");
                    }
                }}     
    

 import java.io.*; io.* java import java.util.*; util.* java import java.math.*; math.* java import java.util.regex.Pattern; Pattern java.util.regex class Main
{
		// your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                    int n,c=0;
                    Scanner sc= new Scanner(System.in);
                    n=sc.nextInt(); 
                    int a[]=new int[n];
                    for(int i=0;i<n;i++)
                    {
                        a[i]=sc.nextInt();
                    }
                    for(int i=0;i<n;i++)
                    {
                        if(a[i]%2==0)
                        {
                            if(a[i]%3==0 || a[i]%5==0)
                            {
                                
                            }
                            else
                            {
                                c++;
                            }
                        }
                    }
                    if(c>0)
                    {
                        System.out.println("DENIED");
                    }
                    else
                    {
                        System.out.println("APPROVED");
                    }
                }} Main // your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                    int n,c=0;
                    Scanner sc= new Scanner(System.in);
                    n=sc.nextInt(); 
                    int a[]=new int[n];
                    for(int i=0;i<n;i++)
                    {
                        a[i]=sc.nextInt();
                    }
                    for(int i=0;i<n;i++)
                    {
                        if(a[i]%2==0)
                        {
                            if(a[i]%3==0 || a[i]%5==0)
                            {
                                
                            }
                            else
                            {
                                c++;
                            }
                        }
                    }
                    if(c>0)
                    {
                        System.out.println("DENIED");
                    }
                    else
                    {
                        System.out.println("APPROVED");
                    }
                } main {
                   // Comparator cmprtr=null;
                    int n,c=0;
                    Scanner sc= new Scanner(System.in);
                    n=sc.nextInt(); 
                    int a[]=new int[n];
                    for(int i=0;i<n;i++)
                    {
                        a[i]=sc.nextInt();
                    }
                    for(int i=0;i<n;i++)
                    {
                        if(a[i]%2==0)
                        {
                            if(a[i]%3==0 || a[i]%5==0)
                            {
                                
                            }
                            else
                            {
                                c++;
                            }
                        }
                    }
                    if(c>0)
                    {
                        System.out.println("DENIED");
                    }
                    else
                    {
                        System.out.println("APPROVED");
                    }
                } int n n c=0; c 0 Scanner sc= new Scanner(System.in); sc new Scanner(System.in) n=sc.nextInt() n sc.nextInt() sc.nextInt sc int a[]=new int[n]; a new int[n] n for(int i=0;i<n;i++)
                    {
                        a[i]=sc.nextInt();
                    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
                        a[i]=sc.nextInt();
                    } {
                        a[i]=sc.nextInt();
                    } a[i]=sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc for(int i=0;i<n;i++)
                    {
                        if(a[i]%2==0)
                        {
                            if(a[i]%3==0 || a[i]%5==0)
                            {
                                
                            }
                            else
                            {
                                c++;
                            }
                        }
                    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
                        if(a[i]%2==0)
                        {
                            if(a[i]%3==0 || a[i]%5==0)
                            {
                                
                            }
                            else
                            {
                                c++;
                            }
                        }
                    } {
                        if(a[i]%2==0)
                        {
                            if(a[i]%3==0 || a[i]%5==0)
                            {
                                
                            }
                            else
                            {
                                c++;
                            }
                        }
                    } if(a[i]%2==0)
                        {
                            if(a[i]%3==0 || a[i]%5==0)
                            {
                                
                            }
                            else
                            {
                                c++;
                            }
                        } a[i]%2==0 a[i]%2 a[i] a i 2 0 {
                            if(a[i]%3==0 || a[i]%5==0)
                            {
                                
                            }
                            else
                            {
                                c++;
                            }
                        } if(a[i]%3==0 || a[i]%5==0)
                            {
                                
                            }
                            else
                            {
                                c++;
                            } a[i]%3==0 || a[i]%5==0 a[i]%3==0 a[i]%3 a[i] a i 3 0 a[i]%5==0 a[i]%5 a[i] a i 5 0 {
                                
                            } {
                                c++;
                            } c++ c if(c>0)
                    {
                        System.out.println("DENIED");
                    }
                    else
                    {
                        System.out.println("APPROVED");
                    } c>0 c 0 {
                        System.out.println("DENIED");
                    } System.out.println("DENIED") System.out.println System.out System System.out "DENIED" {
                        System.out.println("APPROVED");
                    } System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" String args[] args
import java.io.*;
import java.util.*;
import java.math.*;
import java.util.regex.Pattern;
class Main
{
		// your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                    int n,c=0;
                    Scanner sc= new Scanner(System.in);
                    n=sc.nextInt(); 
                    int a[]=new int[n];
                    for(int i=0;i<n;i++)
                    {
                        a[i]=sc.nextInt();
                    }
                    for(int i=0;i<n;i++)
                    {
                        if(a[i]%2==0)
                        {
                            if(a[i]%3==0 || a[i]%5==0)
                            {
                                
                            }
                            else
                            {
                                c++;
                            }
                        }
                    }
                    if(c>0)
                    {
                        System.out.println("DENIED");
                    }
                    else
                    {
                        System.out.println("APPROVED");
                    }
                }}     
    


