import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        boolean flag = true;
        for (int i = 0 ; i < N ; i++) {
            int A = scanner.nextInt();
            if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }

        System.out.println("APPROVED");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        boolean flag = true;
        for (int i = 0 ; i < N ; i++) {
            int A = scanner.nextInt();
            if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }

        System.out.println("APPROVED");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        boolean flag = true;
        for (int i = 0 ; i < N ; i++) {
            int A = scanner.nextInt();
            if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }

        System.out.println("APPROVED");
    } main {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        boolean flag = true;
        for (int i = 0 ; i < N ; i++) {
            int A = scanner.nextInt();
            if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }

        System.out.println("APPROVED");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner boolean flag = true; flag true for (int i = 0 ; i < N ; i++) {
            int A = scanner.nextInt();
            if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
            int A = scanner.nextInt();
            if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        } {
            int A = scanner.nextInt();
            if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        } int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
                System.out.println("DENIED");
                return;
            } A % 2 == 0 && A % 3 != 0 && A % 5 != 0 A % 2 == 0 && A % 3 != 0 && A % 5 != 0 A % 2 == 0 A % 2 A 2 0 A % 3 != 0 A % 3 A 3 0 A % 5 != 0 A % 5 A 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) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        boolean flag = true;
        for (int i = 0 ; i < N ; i++) {
            int A = scanner.nextInt();
            if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }

        System.out.println("APPROVED");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        boolean flag = true;
        for (int i = 0 ; i < N ; i++) {
            int A = scanner.nextInt();
            if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }

        System.out.println("APPROVED");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        boolean flag = true;
        for (int i = 0 ; i < N ; i++) {
            int A = scanner.nextInt();
            if (A % 2 == 0 && A % 3 != 0 && A % 5 != 0) {
                System.out.println("DENIED");
                return;
            }
        }

        System.out.println("APPROVED");
    }
}
