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