import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] A = new int[N];
        boolean isOk = true;
        for(int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
            if(A[i]  % 2 == 0) {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            }
        }
        if(isOk){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
        return;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] A = new int[N];
        boolean isOk = true;
        for(int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
            if(A[i]  % 2 == 0) {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            }
        }
        if(isOk){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
        return;
    }
} Main public static void main(String[] args) {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args private void run() {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] A = new int[N];
        boolean isOk = true;
        for(int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
            if(A[i]  % 2 == 0) {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            }
        }
        if(isOk){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
        return;
    } run {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] A = new int[N];
        boolean isOk = true;
        for(int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
            if(A[i]  % 2 == 0) {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            }
        }
        if(isOk){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
        return;
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int[] A = new int[N]; A new int[N] N boolean isOk = true; isOk true for(int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
            if(A[i]  % 2 == 0) {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            A[i] = scanner.nextInt();
            if(A[i]  % 2 == 0) {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            }
        } {
            A[i] = scanner.nextInt();
            if(A[i]  % 2 == 0) {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            }
        } A[i] = scanner.nextInt() A[i] A i scanner.nextInt() scanner.nextInt scanner if(A[i]  % 2 == 0) {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            } A[i]  % 2 == 0 A[i]  % 2 A[i] A i 2 0 {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            } if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                } !(A[i] % 6 == 0 || A[i] % 10 == 0) (A[i] % 6 == 0 || A[i] % 10 == 0) A[i] % 6 == 0 A[i] % 6 A[i] A i 6 0 A[i] % 10 == 0 A[i] % 10 A[i] A i 10 0 {
                    isOk = false;
                } isOk = false isOk false if(isOk){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        } isOk {
            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" return; public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] A = new int[N];
        boolean isOk = true;
        for(int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
            if(A[i]  % 2 == 0) {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            }
        }
        if(isOk){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
        return;
    }
} public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] A = new int[N];
        boolean isOk = true;
        for(int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
            if(A[i]  % 2 == 0) {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            }
        }
        if(isOk){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
        return;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] A = new int[N];
        boolean isOk = true;
        for(int i = 0; i < N; i++) {
            A[i] = scanner.nextInt();
            if(A[i]  % 2 == 0) {
                if(!(A[i] % 6 == 0 || A[i] % 10 == 0)) {
                    isOk = false;
                }
            }
        }
        if(isOk){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
        return;
    }
}
