import java.util.*;
import java.io.*;
 
public class Main {
    public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        int n = s.nextInt();
      	int temp = 0;
      
      	for (int i = 0; i < n; i++) {
          temp = s.nextInt();
          if (temp%2 == 0) {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          }
        }
      	System.out.println("APPROVED");
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        int n = s.nextInt();
      	int temp = 0;
      
      	for (int i = 0; i < n; i++) {
          temp = s.nextInt();
          if (temp%2 == 0) {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          }
        }
      	System.out.println("APPROVED");
    }
} Main public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        int n = s.nextInt();
      	int temp = 0;
      
      	for (int i = 0; i < n; i++) {
          temp = s.nextInt();
          if (temp%2 == 0) {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          }
        }
      	System.out.println("APPROVED");
    } main {
        final Scanner s = new Scanner(System.in);
        int n = s.nextInt();
      	int temp = 0;
      
      	for (int i = 0; i < n; i++) {
          temp = s.nextInt();
          if (temp%2 == 0) {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          }
        }
      	System.out.println("APPROVED");
    } final Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int temp = 0; temp 0 for (int i = 0; i < n; i++) {
          temp = s.nextInt();
          if (temp%2 == 0) {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
          temp = s.nextInt();
          if (temp%2 == 0) {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          }
        } {
          temp = s.nextInt();
          if (temp%2 == 0) {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          }
        } temp = s.nextInt() temp s.nextInt() s.nextInt s if (temp%2 == 0) {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          } temp%2 == 0 temp%2 temp 2 0 {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          } if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            } temp%3 != 0 && temp%5 != 0 temp%3 != 0 temp%3 temp 3 0 temp%5 != 0 temp%5 temp 5 0 {
              System.out.println("DENIED");
              System.exit(0);
            } System.out.println("DENIED") System.out.println System.out System System.out "DENIED" System.exit(0) System.exit System 0 System.out.println("APPROVED") System.out.println System.out System System.out "APPROVED" final String[] args args public class Main {
    public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        int n = s.nextInt();
      	int temp = 0;
      
      	for (int i = 0; i < n; i++) {
          temp = s.nextInt();
          if (temp%2 == 0) {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          }
        }
      	System.out.println("APPROVED");
    }
} public class Main {
    public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        int n = s.nextInt();
      	int temp = 0;
      
      	for (int i = 0; i < n; i++) {
          temp = s.nextInt();
          if (temp%2 == 0) {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          }
        }
      	System.out.println("APPROVED");
    }
} Main
import java.util.*;
import java.io.*;
 
public class Main {
    public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        int n = s.nextInt();
      	int temp = 0;
      
      	for (int i = 0; i < n; i++) {
          temp = s.nextInt();
          if (temp%2 == 0) {
            if (temp%3 != 0 && temp%5 != 0) {
              System.out.println("DENIED");
              System.exit(0);
            }
          }
        }
      	System.out.println("APPROVED");
    }
}