import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        while (n-- > 0) {
            int num = sc.nextInt();
            
            if (num % 2 != 0) continue;
            
            if (num % 3 != 0 && num % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }
        System.out.println("APPROVED");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        while (n-- > 0) {
            int num = sc.nextInt();
            
            if (num % 2 != 0) continue;
            
            if (num % 3 != 0 && num % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }
        System.out.println("APPROVED");
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        while (n-- > 0) {
            int num = sc.nextInt();
            
            if (num % 2 != 0) continue;
            
            if (num % 3 != 0 && num % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }
        System.out.println("APPROVED");
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        while (n-- > 0) {
            int num = sc.nextInt();
            
            if (num % 2 != 0) continue;
            
            if (num % 3 != 0 && num % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }
        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 while (n-- > 0) {
            int num = sc.nextInt();
            
            if (num % 2 != 0) continue;
            
            if (num % 3 != 0 && num % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        } n-- > 0 n-- n 0 {
            int num = sc.nextInt();
            
            if (num % 2 != 0) continue;
            
            if (num % 3 != 0 && num % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        } int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if (num % 2 != 0) continue; num % 2 != 0 num % 2 num 2 0 continue; if (num % 3 != 0 && num % 5 != 0) {
                System.out.println("DENIED");
                return;
            } num % 3 != 0 && num % 5 != 0 num % 3 != 0 num % 3 num 3 0 num % 5 != 0 num % 5 num 5 0 {
                System.out.println("DENIED");
                return;
            } System.out.println("DENIED") System.out.println System.out System System.out "DENIED" return; 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) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        while (n-- > 0) {
            int num = sc.nextInt();
            
            if (num % 2 != 0) continue;
            
            if (num % 3 != 0 && num % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }
        System.out.println("APPROVED");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        while (n-- > 0) {
            int num = sc.nextInt();
            
            if (num % 2 != 0) continue;
            
            if (num % 3 != 0 && num % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }
        System.out.println("APPROVED");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        while (n-- > 0) {
            int num = sc.nextInt();
            
            if (num % 2 != 0) continue;
            
            if (num % 3 != 0 && num % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }
        System.out.println("APPROVED");
    }
}
