import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] A = new int[N+1];
    int check =0;
    for (int i =1; i<= N; i++) {
      A[i] = sc.nextInt();
      if (A[i] % 2 == 0) {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      }
    }
    if (check != 0) {
      System.out.print("DENIED");
    } else {
      System.out.print("APPROVED");
    }
  }
} 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[] A = new int[N+1];
    int check =0;
    for (int i =1; i<= N; i++) {
      A[i] = sc.nextInt();
      if (A[i] % 2 == 0) {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      }
    }
    if (check != 0) {
      System.out.print("DENIED");
    } else {
      System.out.print("APPROVED");
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] A = new int[N+1];
    int check =0;
    for (int i =1; i<= N; i++) {
      A[i] = sc.nextInt();
      if (A[i] % 2 == 0) {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      }
    }
    if (check != 0) {
      System.out.print("DENIED");
    } else {
      System.out.print("APPROVED");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] A = new int[N+1];
    int check =0;
    for (int i =1; i<= N; i++) {
      A[i] = sc.nextInt();
      if (A[i] % 2 == 0) {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      }
    }
    if (check != 0) {
      System.out.print("DENIED");
    } else {
      System.out.print("APPROVED");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] A = new int[N+1]; A new int[N+1] N+1 N 1 int check =0; check 0 for (int i =1; i<= N; i++) {
      A[i] = sc.nextInt();
      if (A[i] % 2 == 0) {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      }
    } int i =1; int i =1; i 1 i<= N i N i++ i++ i {
      A[i] = sc.nextInt();
      if (A[i] % 2 == 0) {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      }
    } {
      A[i] = sc.nextInt();
      if (A[i] % 2 == 0) {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      }
    } A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc if (A[i] % 2 == 0) {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      } A[i] % 2 == 0 A[i] % 2 A[i] A i 2 0 {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      } if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        } 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 {
          check++;
        } check++ check if (check != 0) {
      System.out.print("DENIED");
    } else {
      System.out.print("APPROVED");
    } check != 0 check 0 {
      System.out.print("DENIED");
    } System.out.print("DENIED") System.out.print System.out System System.out "DENIED" {
      System.out.print("APPROVED");
    } System.out.print("APPROVED") System.out.print System.out System System.out "APPROVED" String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] A = new int[N+1];
    int check =0;
    for (int i =1; i<= N; i++) {
      A[i] = sc.nextInt();
      if (A[i] % 2 == 0) {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      }
    }
    if (check != 0) {
      System.out.print("DENIED");
    } else {
      System.out.print("APPROVED");
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] A = new int[N+1];
    int check =0;
    for (int i =1; i<= N; i++) {
      A[i] = sc.nextInt();
      if (A[i] % 2 == 0) {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      }
    }
    if (check != 0) {
      System.out.print("DENIED");
    } else {
      System.out.print("APPROVED");
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] A = new int[N+1];
    int check =0;
    for (int i =1; i<= N; i++) {
      A[i] = sc.nextInt();
      if (A[i] % 2 == 0) {
        if (A[i] % 3 != 0 && A[i] % 5 != 0) {
          check++;
        }
      }
    }
    if (check != 0) {
      System.out.print("DENIED");
    } else {
      System.out.print("APPROVED");
    }
  }
}