import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {
        try (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();
            }

            boolean approve = true;
            for (int a : A) {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            }

            if (approve) {
                System.out.println("APPROVED");
            } else {
                System.out.println("DENIED");
            }
        }
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) throws Exception {
        try (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();
            }

            boolean approve = true;
            for (int a : A) {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            }

            if (approve) {
                System.out.println("APPROVED");
            } else {
                System.out.println("DENIED");
            }
        }
    }

} Main public static void main(String[] args) throws Exception {
        try (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();
            }

            boolean approve = true;
            for (int a : A) {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            }

            if (approve) {
                System.out.println("APPROVED");
            } else {
                System.out.println("DENIED");
            }
        }
    } main {
        try (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();
            }

            boolean approve = true;
            for (int a : A) {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            }

            if (approve) {
                System.out.println("APPROVED");
            } else {
                System.out.println("DENIED");
            }
        }
    } try (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();
            }

            boolean approve = true;
            for (int a : A) {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            }

            if (approve) {
                System.out.println("APPROVED");
            } else {
                System.out.println("DENIED");
            }
        } {
            int N = sc.nextInt();
            int[] A = new int[N];
            for (int i = 0; i < N; i++) {
                A[i] = sc.nextInt();
            }

            boolean approve = true;
            for (int a : A) {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            }

            if (approve) {
                System.out.println("APPROVED");
            } else {
                System.out.println("DENIED");
            }
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) 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 boolean approve = true; approve true for (int a : A) {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            } int a A {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            } {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            } if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                } a % 2 == 0 a % 2 a 2 0 {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                } if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    } a % 3 != 0 && a % 5 != 0 a % 3 != 0 a % 3 a 3 0 a % 5 != 0 a % 5 a 5 0 {
                        approve = false;
                        break;
                    } approve = false approve false break; if (approve) {
                System.out.println("APPROVED");
            } else {
                System.out.println("DENIED");
            } approve {
                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) throws Exception {
        try (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();
            }

            boolean approve = true;
            for (int a : A) {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            }

            if (approve) {
                System.out.println("APPROVED");
            } else {
                System.out.println("DENIED");
            }
        }
    }

} public class Main {

    public static void main(String[] args) throws Exception {
        try (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();
            }

            boolean approve = true;
            for (int a : A) {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            }

            if (approve) {
                System.out.println("APPROVED");
            } else {
                System.out.println("DENIED");
            }
        }
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {
        try (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();
            }

            boolean approve = true;
            for (int a : A) {
                if (a % 2 == 0) {
                    if (a % 3 != 0 && a % 5 != 0) {
                        approve = false;
                        break;
                    }
                }
            }

            if (approve) {
                System.out.println("APPROVED");
            } else {
                System.out.println("DENIED");
            }
        }
    }

}
