import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Main {
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        Random rand = new Random();
        // 整数の入力
        List<Integer> list = new ArrayList<>();
        int num = sc.nextInt();
        int count = 0;

        for(int i=0;i<num;i++){
            list.add(sc.nextInt());
        }
        
        for(int i=0;i<num;i++){
            if(list.get(i) % 2 == 1){
            }else{
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            }
        }
       
        if(count == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }


    
	}
} import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.Iterator; Iterator java.util import java.util.List; List java.util public class Main {
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        Random rand = new Random();
        // 整数の入力
        List<Integer> list = new ArrayList<>();
        int num = sc.nextInt();
        int count = 0;

        for(int i=0;i<num;i++){
            list.add(sc.nextInt());
        }
        
        for(int i=0;i<num;i++){
            if(list.get(i) % 2 == 1){
            }else{
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            }
        }
       
        if(count == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }


    
	}
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        Random rand = new Random();
        // 整数の入力
        List<Integer> list = new ArrayList<>();
        int num = sc.nextInt();
        int count = 0;

        for(int i=0;i<num;i++){
            list.add(sc.nextInt());
        }
        
        for(int i=0;i<num;i++){
            if(list.get(i) % 2 == 1){
            }else{
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            }
        }
       
        if(count == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }


    
	} main {
        Scanner sc = new Scanner(System.in);
        Random rand = new Random();
        // 整数の入力
        List<Integer> list = new ArrayList<>();
        int num = sc.nextInt();
        int count = 0;

        for(int i=0;i<num;i++){
            list.add(sc.nextInt());
        }
        
        for(int i=0;i<num;i++){
            if(list.get(i) % 2 == 1){
            }else{
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            }
        }
       
        if(count == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }


    
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Random rand = new Random(); rand new Random() List<Integer> list = new ArrayList<>(); list new ArrayList<>() int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int count = 0; count 0 for(int i=0;i<num;i++){
            list.add(sc.nextInt());
        } int i=0; int i=0; i 0 i<num i num i++ i++ i {
            list.add(sc.nextInt());
        } {
            list.add(sc.nextInt());
        } list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc for(int i=0;i<num;i++){
            if(list.get(i) % 2 == 1){
            }else{
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            }
        } int i=0; int i=0; i 0 i<num i num i++ i++ i {
            if(list.get(i) % 2 == 1){
            }else{
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            }
        } {
            if(list.get(i) % 2 == 1){
            }else{
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            }
        } if(list.get(i) % 2 == 1){
            }else{
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            } list.get(i) % 2 == 1 list.get(i) % 2 list.get(i) list.get list i 2 1 {
            } {
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            } if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                } list.get(i) % 3 == 0 || list.get(i) % 5 == 0 list.get(i) % 3 == 0 list.get(i) % 3 list.get(i) list.get list i 3 0 list.get(i) % 5 == 0 list.get(i) % 5 list.get(i) list.get list i 5 0 {
                } {
                    count++;
                } count++ count if(count == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        } count == 0 count 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){
        Scanner sc = new Scanner(System.in);
        Random rand = new Random();
        // 整数の入力
        List<Integer> list = new ArrayList<>();
        int num = sc.nextInt();
        int count = 0;

        for(int i=0;i<num;i++){
            list.add(sc.nextInt());
        }
        
        for(int i=0;i<num;i++){
            if(list.get(i) % 2 == 1){
            }else{
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            }
        }
       
        if(count == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }


    
	}
} public class Main {
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        Random rand = new Random();
        // 整数の入力
        List<Integer> list = new ArrayList<>();
        int num = sc.nextInt();
        int count = 0;

        for(int i=0;i<num;i++){
            list.add(sc.nextInt());
        }
        
        for(int i=0;i<num;i++){
            if(list.get(i) % 2 == 1){
            }else{
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            }
        }
       
        if(count == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }


    
	}
} Main
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Main {
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        Random rand = new Random();
        // 整数の入力
        List<Integer> list = new ArrayList<>();
        int num = sc.nextInt();
        int count = 0;

        for(int i=0;i<num;i++){
            list.add(sc.nextInt());
        }
        
        for(int i=0;i<num;i++){
            if(list.get(i) % 2 == 1){
            }else{
                if(list.get(i) % 3 == 0 || list.get(i) % 5 == 0){
                } else{
                    count++;
                }
            }
        }
       
        if(count == 0){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }


    
	}
}