import java.util.Scanner;
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++){
            a[i]=sc.nextInt();
        }
        int ans1=0;
        int ans2=0;
        for(int j=0; j<n; j++){
            if(a[j]%2==0){
                ans1++;
                if((a[j]%3==0)||(a[j]%5==0)){
                    ans2++;
                }
            }
        }
        if(ans1==ans2){
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        }
        sc.close();
    }
} import java.util.Scanner; Scanner java.util 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++){
            a[i]=sc.nextInt();
        }
        int ans1=0;
        int ans2=0;
        for(int j=0; j<n; j++){
            if(a[j]%2==0){
                ans1++;
                if((a[j]%3==0)||(a[j]%5==0)){
                    ans2++;
                }
            }
        }
        if(ans1==ans2){
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        }
        sc.close();
    }
} 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++){
            a[i]=sc.nextInt();
        }
        int ans1=0;
        int ans2=0;
        for(int j=0; j<n; j++){
            if(a[j]%2==0){
                ans1++;
                if((a[j]%3==0)||(a[j]%5==0)){
                    ans2++;
                }
            }
        }
        if(ans1==ans2){
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        }
        sc.close();
    } main {
		Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int a[]=new int[n];
        for(int i=0; i<n; i++){
            a[i]=sc.nextInt();
        }
        int ans1=0;
        int ans2=0;
        for(int j=0; j<n; j++){
            if(a[j]%2==0){
                ans1++;
                if((a[j]%3==0)||(a[j]%5==0)){
                    ans2++;
                }
            }
        }
        if(ans1==ans2){
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        }
        sc.close();
    } 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++){
            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 int ans1=0; ans1 0 int ans2=0; ans2 0 for(int j=0; j<n; j++){
            if(a[j]%2==0){
                ans1++;
                if((a[j]%3==0)||(a[j]%5==0)){
                    ans2++;
                }
            }
        } int j=0; int j=0; j 0 j<n j n j++ j++ j {
            if(a[j]%2==0){
                ans1++;
                if((a[j]%3==0)||(a[j]%5==0)){
                    ans2++;
                }
            }
        } {
            if(a[j]%2==0){
                ans1++;
                if((a[j]%3==0)||(a[j]%5==0)){
                    ans2++;
                }
            }
        } if(a[j]%2==0){
                ans1++;
                if((a[j]%3==0)||(a[j]%5==0)){
                    ans2++;
                }
            } a[j]%2==0 a[j]%2 a[j] a j 2 0 {
                ans1++;
                if((a[j]%3==0)||(a[j]%5==0)){
                    ans2++;
                }
            } ans1++ ans1 if((a[j]%3==0)||(a[j]%5==0)){
                    ans2++;
                } (a[j]%3==0)||(a[j]%5==0) (a[j]%3==0) a[j]%3 a[j] a j 3 0 (a[j]%5==0) a[j]%5 a[j] a j 5 0 {
                    ans2++;
                } ans2++ ans2 if(ans1==ans2){
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        } ans1==ans2 ans1 ans2 {
            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" sc.close() sc.close sc String args[] args
import java.util.Scanner;
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++){
            a[i]=sc.nextInt();
        }
        int ans1=0;
        int ans2=0;
        for(int j=0; j<n; j++){
            if(a[j]%2==0){
                ans1++;
                if((a[j]%3==0)||(a[j]%5==0)){
                    ans2++;
                }
            }
        }
        if(ans1==ans2){
            System.out.println("APPROVED");
        }
        else{
            System.out.println("DENIED");
        }
        sc.close();
    }
}