import java.util.*;

public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        
        Integer[] array = new Integer[n];
        for(int i = 0; i < n; ++i) {
            int num = Integer.parseInt(sc.next());
            array[i] = num;
        }
        
        boolean flag = true;
        int even_counter = 0;
        int counter = 0;
        
        
        for(int item : array) {
            if(item % 2 == 0) {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            }
            else continue;
        }
        
        //System.out.println(even_counter);
        //System.out.println(counter);
        
        if(even_counter == counter) System.out.println("APPROVED");
        else System.out.println("DENIED");
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        
        Integer[] array = new Integer[n];
        for(int i = 0; i < n; ++i) {
            int num = Integer.parseInt(sc.next());
            array[i] = num;
        }
        
        boolean flag = true;
        int even_counter = 0;
        int counter = 0;
        
        
        for(int item : array) {
            if(item % 2 == 0) {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            }
            else continue;
        }
        
        //System.out.println(even_counter);
        //System.out.println(counter);
        
        if(even_counter == counter) System.out.println("APPROVED");
        else System.out.println("DENIED");
        
    }
} Main public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        
        Integer[] array = new Integer[n];
        for(int i = 0; i < n; ++i) {
            int num = Integer.parseInt(sc.next());
            array[i] = num;
        }
        
        boolean flag = true;
        int even_counter = 0;
        int counter = 0;
        
        
        for(int item : array) {
            if(item % 2 == 0) {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            }
            else continue;
        }
        
        //System.out.println(even_counter);
        //System.out.println(counter);
        
        if(even_counter == counter) System.out.println("APPROVED");
        else System.out.println("DENIED");
        
    } main {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        
        Integer[] array = new Integer[n];
        for(int i = 0; i < n; ++i) {
            int num = Integer.parseInt(sc.next());
            array[i] = num;
        }
        
        boolean flag = true;
        int even_counter = 0;
        int counter = 0;
        
        
        for(int item : array) {
            if(item % 2 == 0) {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            }
            else continue;
        }
        
        //System.out.println(even_counter);
        //System.out.println(counter);
        
        if(even_counter == counter) System.out.println("APPROVED");
        else System.out.println("DENIED");
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Integer[] array = new Integer[n]; array new Integer[n] n for(int i = 0; i < n; ++i) {
            int num = Integer.parseInt(sc.next());
            array[i] = num;
        } int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
            int num = Integer.parseInt(sc.next());
            array[i] = num;
        } {
            int num = Integer.parseInt(sc.next());
            array[i] = num;
        } int num = Integer.parseInt(sc.next()); num Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc array[i] = num array[i] array i num boolean flag = true; flag true int even_counter = 0; even_counter 0 int counter = 0; counter 0 for(int item : array) {
            if(item % 2 == 0) {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            }
            else continue;
        } int item array {
            if(item % 2 == 0) {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            }
            else continue;
        } {
            if(item % 2 == 0) {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            }
            else continue;
        } if(item % 2 == 0) {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            }
            else continue; item % 2 == 0 item % 2 item 2 0 {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            } ++even_counter even_counter if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue; (item % 3 == 0) || (item % 5 ==0) (item % 3 == 0) item % 3 item 3 0 (item % 5 ==0) item % 5 item 5 0 ++counter counter continue; continue; if(even_counter == counter) System.out.println("APPROVED");
        else System.out.println("DENIED"); even_counter == counter even_counter counter System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" 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);
        
        int n = Integer.parseInt(sc.next());
        
        Integer[] array = new Integer[n];
        for(int i = 0; i < n; ++i) {
            int num = Integer.parseInt(sc.next());
            array[i] = num;
        }
        
        boolean flag = true;
        int even_counter = 0;
        int counter = 0;
        
        
        for(int item : array) {
            if(item % 2 == 0) {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            }
            else continue;
        }
        
        //System.out.println(even_counter);
        //System.out.println(counter);
        
        if(even_counter == counter) System.out.println("APPROVED");
        else System.out.println("DENIED");
        
    }
} public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        
        Integer[] array = new Integer[n];
        for(int i = 0; i < n; ++i) {
            int num = Integer.parseInt(sc.next());
            array[i] = num;
        }
        
        boolean flag = true;
        int even_counter = 0;
        int counter = 0;
        
        
        for(int item : array) {
            if(item % 2 == 0) {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            }
            else continue;
        }
        
        //System.out.println(even_counter);
        //System.out.println(counter);
        
        if(even_counter == counter) System.out.println("APPROVED");
        else System.out.println("DENIED");
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        
        Integer[] array = new Integer[n];
        for(int i = 0; i < n; ++i) {
            int num = Integer.parseInt(sc.next());
            array[i] = num;
        }
        
        boolean flag = true;
        int even_counter = 0;
        int counter = 0;
        
        
        for(int item : array) {
            if(item % 2 == 0) {
                ++even_counter;
                if((item % 3 == 0) || (item % 5 ==0)) ++counter;
                else continue;
            }
            else continue;
        }
        
        //System.out.println(even_counter);
        //System.out.println(counter);
        
        if(even_counter == counter) System.out.println("APPROVED");
        else System.out.println("DENIED");
        
    }
}