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