import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int n = Integer.parseInt(stdIn.next());
        int[] a = new int[n];
        boolean flag = false;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(stdIn.next());
            if (a[i] % 2 == 0 && (a[i] % 3 != 0 && a[i] % 5 != 0)) {
                flag = true;
            }
        }

        if (flag) {
            System.out.println("DENIED");
        } else {
            System.out.println("APPROVED");
        }
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int n = Integer.parseInt(stdIn.next());
        int[] a = new int[n];
        boolean flag = false;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(stdIn.next());
            if (a[i] % 2 == 0 && (a[i] % 3 != 0 && a[i] % 5 != 0)) {
                flag = true;
            }
        }

        if (flag) {
            System.out.println("DENIED");
        } else {
            System.out.println("APPROVED");
        }
    }
} Main public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int n = Integer.parseInt(stdIn.next());
        int[] a = new int[n];
        boolean flag = false;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(stdIn.next());
            if (a[i] % 2 == 0 && (a[i] % 3 != 0 && a[i] % 5 != 0)) {
                flag = true;
            }
        }

        if (flag) {
            System.out.println("DENIED");
        } else {
            System.out.println("APPROVED");
        }
    } main {
        Scanner stdIn = new Scanner(System.in);
        int n = Integer.parseInt(stdIn.next());
        int[] a = new int[n];
        boolean flag = false;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(stdIn.next());
            if (a[i] % 2 == 0 && (a[i] % 3 != 0 && a[i] % 5 != 0)) {
                flag = true;
            }
        }

        if (flag) {
            System.out.println("DENIED");
        } else {
            System.out.println("APPROVED");
        }
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = Integer.parseInt(stdIn.next()); n Integer.parseInt(stdIn.next()) Integer.parseInt Integer stdIn.next() stdIn.next stdIn int[] a = new int[n]; a new int[n] n boolean flag = false; flag false for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(stdIn.next());
            if (a[i] % 2 == 0 && (a[i] % 3 != 0 && a[i] % 5 != 0)) {
                flag = true;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a[i] = Integer.parseInt(stdIn.next());
            if (a[i] % 2 == 0 && (a[i] % 3 != 0 && a[i] % 5 != 0)) {
                flag = true;
            }
        } {
            a[i] = Integer.parseInt(stdIn.next());
            if (a[i] % 2 == 0 && (a[i] % 3 != 0 && a[i] % 5 != 0)) {
                flag = true;
            }
        } a[i] = Integer.parseInt(stdIn.next()) a[i] a i Integer.parseInt(stdIn.next()) Integer.parseInt Integer stdIn.next() stdIn.next stdIn if (a[i] % 2 == 0 && (a[i] % 3 != 0 && a[i] % 5 != 0)) {
                flag = true;
            } a[i] % 2 == 0 && (a[i] % 3 != 0 && a[i] % 5 != 0) a[i] % 2 == 0 a[i] % 2 a[i] a i 2 0 (a[i] % 3 != 0 && a[i] % 5 != 0) a[i] % 3 != 0 a[i] % 3 a[i] a i 3 0 a[i] % 5 != 0 a[i] % 5 a[i] a i 5 0 {
                flag = true;
            } flag = true flag true if (flag) {
            System.out.println("DENIED");
        } else {
            System.out.println("APPROVED");
        } flag {
            System.out.println("DENIED");
        } System.out.println("DENIED") System.out.println System.out System System.out "DENIED" {
            System.out.println("APPROVED");
        } System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int n = Integer.parseInt(stdIn.next());
        int[] a = new int[n];
        boolean flag = false;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(stdIn.next());
            if (a[i] % 2 == 0 && (a[i] % 3 != 0 && a[i] % 5 != 0)) {
                flag = true;
            }
        }

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