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];
    for (int i = 0; i < N; i++) {
      a[i] = sc.nextInt();
    }
    int[] rate = new int[9];
    for (int i = 0; i < N; i++) {
      if (3200 <= a[i]) {
        rate[8]++;
      } else {
        rate[a[i] / 400]++;
      }
    }
    int min = 0;
    int max = 0;
    for (int i = 0; i <= 7; i++) {
      if (0 < rate[i]) {
        min++;
        max++;
      }
    }
    max += rate[8];
    if (min == 0) {
      min = 1;
    }
    System.out.println(min + " " + max);
  }
} 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];
    for (int i = 0; i < N; i++) {
      a[i] = sc.nextInt();
    }
    int[] rate = new int[9];
    for (int i = 0; i < N; i++) {
      if (3200 <= a[i]) {
        rate[8]++;
      } else {
        rate[a[i] / 400]++;
      }
    }
    int min = 0;
    int max = 0;
    for (int i = 0; i <= 7; i++) {
      if (0 < rate[i]) {
        min++;
        max++;
      }
    }
    max += rate[8];
    if (min == 0) {
      min = 1;
    }
    System.out.println(min + " " + max);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] a = new int[N];
    for (int i = 0; i < N; i++) {
      a[i] = sc.nextInt();
    }
    int[] rate = new int[9];
    for (int i = 0; i < N; i++) {
      if (3200 <= a[i]) {
        rate[8]++;
      } else {
        rate[a[i] / 400]++;
      }
    }
    int min = 0;
    int max = 0;
    for (int i = 0; i <= 7; i++) {
      if (0 < rate[i]) {
        min++;
        max++;
      }
    }
    max += rate[8];
    if (min == 0) {
      min = 1;
    }
    System.out.println(min + " " + max);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] a = new int[N];
    for (int i = 0; i < N; i++) {
      a[i] = sc.nextInt();
    }
    int[] rate = new int[9];
    for (int i = 0; i < N; i++) {
      if (3200 <= a[i]) {
        rate[8]++;
      } else {
        rate[a[i] / 400]++;
      }
    }
    int min = 0;
    int max = 0;
    for (int i = 0; i <= 7; i++) {
      if (0 < rate[i]) {
        min++;
        max++;
      }
    }
    max += rate[8];
    if (min == 0) {
      min = 1;
    }
    System.out.println(min + " " + max);
  } 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]; a new int[N] N for (int i = 0; i < N; i++) {
      a[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      a[i] = sc.nextInt();
    } {
      a[i] = sc.nextInt();
    } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int[] rate = new int[9]; rate new int[9] 9 for (int i = 0; i < N; i++) {
      if (3200 <= a[i]) {
        rate[8]++;
      } else {
        rate[a[i] / 400]++;
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      if (3200 <= a[i]) {
        rate[8]++;
      } else {
        rate[a[i] / 400]++;
      }
    } {
      if (3200 <= a[i]) {
        rate[8]++;
      } else {
        rate[a[i] / 400]++;
      }
    } if (3200 <= a[i]) {
        rate[8]++;
      } else {
        rate[a[i] / 400]++;
      } 3200 <= a[i] 3200 a[i] a i {
        rate[8]++;
      } rate[8]++ rate[8] rate 8 {
        rate[a[i] / 400]++;
      } rate[a[i] / 400]++ rate[a[i] / 400] rate a[i] / 400 a[i] a i 400 int min = 0; min 0 int max = 0; max 0 for (int i = 0; i <= 7; i++) {
      if (0 < rate[i]) {
        min++;
        max++;
      }
    } int i = 0; int i = 0; i 0 i <= 7 i 7 i++ i++ i {
      if (0 < rate[i]) {
        min++;
        max++;
      }
    } {
      if (0 < rate[i]) {
        min++;
        max++;
      }
    } if (0 < rate[i]) {
        min++;
        max++;
      } 0 < rate[i] 0 rate[i] rate i {
        min++;
        max++;
      } min++ min max++ max max += rate[8] max rate[8] rate 8 if (min == 0) {
      min = 1;
    } min == 0 min 0 {
      min = 1;
    } min = 1 min 1 System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max 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];
    for (int i = 0; i < N; i++) {
      a[i] = sc.nextInt();
    }
    int[] rate = new int[9];
    for (int i = 0; i < N; i++) {
      if (3200 <= a[i]) {
        rate[8]++;
      } else {
        rate[a[i] / 400]++;
      }
    }
    int min = 0;
    int max = 0;
    for (int i = 0; i <= 7; i++) {
      if (0 < rate[i]) {
        min++;
        max++;
      }
    }
    max += rate[8];
    if (min == 0) {
      min = 1;
    }
    System.out.println(min + " " + max);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] a = new int[N];
    for (int i = 0; i < N; i++) {
      a[i] = sc.nextInt();
    }
    int[] rate = new int[9];
    for (int i = 0; i < N; i++) {
      if (3200 <= a[i]) {
        rate[8]++;
      } else {
        rate[a[i] / 400]++;
      }
    }
    int min = 0;
    int max = 0;
    for (int i = 0; i <= 7; i++) {
      if (0 < rate[i]) {
        min++;
        max++;
      }
    }
    max += rate[8];
    if (min == 0) {
      min = 1;
    }
    System.out.println(min + " " + max);
  }
} 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];
    for (int i = 0; i < N; i++) {
      a[i] = sc.nextInt();
    }
    int[] rate = new int[9];
    for (int i = 0; i < N; i++) {
      if (3200 <= a[i]) {
        rate[8]++;
      } else {
        rate[a[i] / 400]++;
      }
    }
    int min = 0;
    int max = 0;
    for (int i = 0; i <= 7; i++) {
      if (0 < rate[i]) {
        min++;
        max++;
      }
    }
    max += rate[8];
    if (min == 0) {
      min = 1;
    }
    System.out.println(min + " " + max);
  }
}