import java.util.*;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int data[] = new int[n];
    boolean t = true;

    for (int i = 0 ; i < n ; i++ ) {
      data[i] = sc.nextInt();
    }

    for (int i = 0 ; i < n ; i++) {
      if ((data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1) {
        t = true;
        continue;
      } else {
        t = false;
        break;
      }
    }

      if (t == true) {
        System.out.println("APPROVED");
      } else {
      System.out.println("DENIED");
      }

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

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int data[] = new int[n];
    boolean t = true;

    for (int i = 0 ; i < n ; i++ ) {
      data[i] = sc.nextInt();
    }

    for (int i = 0 ; i < n ; i++) {
      if ((data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1) {
        t = true;
        continue;
      } else {
        t = false;
        break;
      }
    }

      if (t == true) {
        System.out.println("APPROVED");
      } else {
      System.out.println("DENIED");
      }

  }
} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int data[] = new int[n];
    boolean t = true;

    for (int i = 0 ; i < n ; i++ ) {
      data[i] = sc.nextInt();
    }

    for (int i = 0 ; i < n ; i++) {
      if ((data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1) {
        t = true;
        continue;
      } else {
        t = false;
        break;
      }
    }

      if (t == true) {
        System.out.println("APPROVED");
      } else {
      System.out.println("DENIED");
      }

  } main {

    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int data[] = new int[n];
    boolean t = true;

    for (int i = 0 ; i < n ; i++ ) {
      data[i] = sc.nextInt();
    }

    for (int i = 0 ; i < n ; i++) {
      if ((data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1) {
        t = true;
        continue;
      } else {
        t = false;
        break;
      }
    }

      if (t == true) {
        System.out.println("APPROVED");
      } else {
      System.out.println("DENIED");
      }

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int data[] = new int[n]; data new int[n] n boolean t = true; t true for (int i = 0 ; i < n ; i++ ) {
      data[i] = sc.nextInt();
    } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
      data[i] = sc.nextInt();
    } {
      data[i] = sc.nextInt();
    } data[i] = sc.nextInt() data[i] data i sc.nextInt() sc.nextInt sc for (int i = 0 ; i < n ; i++) {
      if ((data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1) {
        t = true;
        continue;
      } else {
        t = false;
        break;
      }
    } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
      if ((data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1) {
        t = true;
        continue;
      } else {
        t = false;
        break;
      }
    } {
      if ((data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1) {
        t = true;
        continue;
      } else {
        t = false;
        break;
      }
    } if ((data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1) {
        t = true;
        continue;
      } else {
        t = false;
        break;
      } (data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1 (data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) data[i] % 2 == 0 data[i] % 2 data[i] data i 2 0 (data[i] % 3 == 0 || data[i] % 5 == 0) data[i] % 3 == 0 data[i] % 3 data[i] data i 3 0 data[i] % 5 == 0 data[i] % 5 data[i] data i 5 0 data[i] % 2 == 1 data[i] % 2 data[i] data i 2 1 {
        t = true;
        continue;
      } t = true t true continue; {
        t = false;
        break;
      } t = false t false break; if (t == true) {
        System.out.println("APPROVED");
      } else {
      System.out.println("DENIED");
      } t == true t true {
        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) {

    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int data[] = new int[n];
    boolean t = true;

    for (int i = 0 ; i < n ; i++ ) {
      data[i] = sc.nextInt();
    }

    for (int i = 0 ; i < n ; i++) {
      if ((data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1) {
        t = true;
        continue;
      } else {
        t = false;
        break;
      }
    }

      if (t == true) {
        System.out.println("APPROVED");
      } else {
      System.out.println("DENIED");
      }

  }
} public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int data[] = new int[n];
    boolean t = true;

    for (int i = 0 ; i < n ; i++ ) {
      data[i] = sc.nextInt();
    }

    for (int i = 0 ; i < n ; i++) {
      if ((data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1) {
        t = true;
        continue;
      } else {
        t = false;
        break;
      }
    }

      if (t == true) {
        System.out.println("APPROVED");
      } else {
      System.out.println("DENIED");
      }

  }
} Main
import java.util.*;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int data[] = new int[n];
    boolean t = true;

    for (int i = 0 ; i < n ; i++ ) {
      data[i] = sc.nextInt();
    }

    for (int i = 0 ; i < n ; i++) {
      if ((data[i] % 2 == 0 && (data[i] % 3 == 0 || data[i] % 5 == 0)) || data[i] % 2 == 1) {
        t = true;
        continue;
      } else {
        t = false;
        break;
      }
    }

      if (t == true) {
        System.out.println("APPROVED");
      } else {
      System.out.println("DENIED");
      }

  }
}
