#include <bits/stdc++.h>
int main() {
  int color[8] = {0, 0, 0, 0, 0, 0, 0, 0};
  int specialcolor = 0;
  int N;
  std::cin >> N;
  for (int i = 0; i < N; i++) {
    int c;
    std::cin >> c;
    if (1 <= c && c <= 3199) {
      color[c / 400]++;
    } else {
      specialcolor++;
    }
  }
  int min = 0;
  for (int i = 0; i < 8; i++) {
    min += color[i] > 0 ? 1 : 0;
  }
  if (min == 0) {
    min = specialcolor;
  }
  std::cout << min << ' ' << min + specialcolor << std::endl;
  return 0;
}
