#include <bits/stdc++.h>
int main() {
  int n, a, min = 0, free = 0;
  bool array[8];
  for (int i = 0; i < 8; i++) {
    array[i] = false;
  }
  std::cin >> n;
  for (int i = 0; i < n; i++) {
    std::cin >> a;
    if (1 <= a && a <= 399) {
      array[0] = true;
    } else if (400 <= a && a <= 799) {
      array[1] = true;
    } else if (800 <= a && a <= 1199) {
      array[2] = true;
    } else if (1200 <= a && a <= 1599) {
      array[3] = true;
    } else if (1600 <= a && a <= 1999) {
      array[4] = true;
    } else if (2000 <= a && a <= 2399) {
      array[5] = true;
    } else if (2400 <= a && a <= 2799) {
      array[6] = true;
    } else if (2800 <= a && a <= 3199) {
      array[7] = true;
    } else {
      free++;
    }
  }
  int max = 0;
  for (bool b : array) {
    if (b) {
      min++;
    }
  }
  if (min + free >= 8) {
    max = 8;
  } else {
    max = min + free;
  }
  std::cout << min << ' ' << max << std::endl;
  return 0;
}
