import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class Main {

    public static void main(String[] args) 
    {
        Scanner sc= new Scanner(System.in);
        int n= sc.nextInt();
        
        int[] a= new int[n];
        
        for(int i=0;i<n;i++)
        {
            int x;
            x=sc.nextInt();
            a[i]=x;
        }
        
        int flag=1;
        
        for(int i=0;i<n;i++)
        {
            if(a[i]%2==0 )
            {
                if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            }
        }
        
        if(flag==0)
        {
            System.out.println("DENIED");
        }
        
        else{
            System.out.println("APPROVED");
        }
    
    }
    
    
    
}
 import java.io.*; io.* java import java.util.*; util.* java import java.text.*; text.* java import java.math.*; math.* java import java.util.regex.*; regex.* java.util public class Main {

    public static void main(String[] args) 
    {
        Scanner sc= new Scanner(System.in);
        int n= sc.nextInt();
        
        int[] a= new int[n];
        
        for(int i=0;i<n;i++)
        {
            int x;
            x=sc.nextInt();
            a[i]=x;
        }
        
        int flag=1;
        
        for(int i=0;i<n;i++)
        {
            if(a[i]%2==0 )
            {
                if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            }
        }
        
        if(flag==0)
        {
            System.out.println("DENIED");
        }
        
        else{
            System.out.println("APPROVED");
        }
    
    }
    
    
    
} Main public static void main(String[] args) 
    {
        Scanner sc= new Scanner(System.in);
        int n= sc.nextInt();
        
        int[] a= new int[n];
        
        for(int i=0;i<n;i++)
        {
            int x;
            x=sc.nextInt();
            a[i]=x;
        }
        
        int flag=1;
        
        for(int i=0;i<n;i++)
        {
            if(a[i]%2==0 )
            {
                if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            }
        }
        
        if(flag==0)
        {
            System.out.println("DENIED");
        }
        
        else{
            System.out.println("APPROVED");
        }
    
    } main {
        Scanner sc= new Scanner(System.in);
        int n= sc.nextInt();
        
        int[] a= new int[n];
        
        for(int i=0;i<n;i++)
        {
            int x;
            x=sc.nextInt();
            a[i]=x;
        }
        
        int flag=1;
        
        for(int i=0;i<n;i++)
        {
            if(a[i]%2==0 )
            {
                if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            }
        }
        
        if(flag==0)
        {
            System.out.println("DENIED");
        }
        
        else{
            System.out.println("APPROVED");
        }
    
    } Scanner sc= new Scanner(System.in); sc new Scanner(System.in) int 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++)
        {
            int x;
            x=sc.nextInt();
            a[i]=x;
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int x;
            x=sc.nextInt();
            a[i]=x;
        } {
            int x;
            x=sc.nextInt();
            a[i]=x;
        } int x; x x=sc.nextInt() x sc.nextInt() sc.nextInt sc a[i]=x a[i] a i x int flag=1; flag 1 for(int i=0;i<n;i++)
        {
            if(a[i]%2==0 )
            {
                if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            }
        } 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)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            }
        } {
            if(a[i]%2==0 )
            {
                if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            }
        } if(a[i]%2==0 )
            {
                if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            } a[i]%2==0 a[i]%2 a[i] a i 2 0 {
                if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            } if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                } 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 {
                    flag=1;

                } flag=1 flag 1 {
                    flag=0;
                    break;
                } flag=0 flag 0 break; if(flag==0)
        {
            System.out.println("DENIED");
        }
        
        else{
            System.out.println("APPROVED");
        } flag==0 flag 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 public class Main {

    public static void main(String[] args) 
    {
        Scanner sc= new Scanner(System.in);
        int n= sc.nextInt();
        
        int[] a= new int[n];
        
        for(int i=0;i<n;i++)
        {
            int x;
            x=sc.nextInt();
            a[i]=x;
        }
        
        int flag=1;
        
        for(int i=0;i<n;i++)
        {
            if(a[i]%2==0 )
            {
                if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            }
        }
        
        if(flag==0)
        {
            System.out.println("DENIED");
        }
        
        else{
            System.out.println("APPROVED");
        }
    
    }
    
    
    
} public class Main {

    public static void main(String[] args) 
    {
        Scanner sc= new Scanner(System.in);
        int n= sc.nextInt();
        
        int[] a= new int[n];
        
        for(int i=0;i<n;i++)
        {
            int x;
            x=sc.nextInt();
            a[i]=x;
        }
        
        int flag=1;
        
        for(int i=0;i<n;i++)
        {
            if(a[i]%2==0 )
            {
                if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            }
        }
        
        if(flag==0)
        {
            System.out.println("DENIED");
        }
        
        else{
            System.out.println("APPROVED");
        }
    
    }
    
    
    
} Main
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class Main {

    public static void main(String[] args) 
    {
        Scanner sc= new Scanner(System.in);
        int n= sc.nextInt();
        
        int[] a= new int[n];
        
        for(int i=0;i<n;i++)
        {
            int x;
            x=sc.nextInt();
            a[i]=x;
        }
        
        int flag=1;
        
        for(int i=0;i<n;i++)
        {
            if(a[i]%2==0 )
            {
                if(a[i]%3==0 || a[i]%5==0)
                {
                    flag=1;

                }
                
                else
                {
                    flag=0;
                    break;
                }
            }
        }
        
        if(flag==0)
        {
            System.out.println("DENIED");
        }
        
        else{
            System.out.println("APPROVED");
        }
    
    }
    
    
    
}

