#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> rate(N);
  for (int i = 0; i < N; i++) {
    cin >> rate.at(i);
  }
  int a, b, c, d, e, f, g, h, z;
  for (int i = 0; i < N; i++) {
    if (rate.at(i) < 400 && a == 0) {
      a++;
    }
    if (rate.at(i) >= 400 && rate.at(i) < 800 && b == 0) {
      b++;
    }
    if (rate.at(i) >= 800 && rate.at(i) < 1200 && c == 0) {
      c++;
    }
    if (rate.at(i) >= 1200 && rate.at(i) < 1600 && d == 0) {
      d++;
    }
    if (rate.at(i) >= 1600 && rate.at(i) < 2000 && e == 0) {
      e++;
    }
    if (rate.at(i) >= 2000 && rate.at(i) < 2400 && f == 0) {
      f++;
    }
    if (rate.at(i) >= 2400 && rate.at(i) < 2800 && g == 0) {
      g++;
    }
    if (rate.at(i) >= 2800 && rate.at(i) < 3200 && h == 0) {
      h++;
    }
    if (rate.at(i) >= 3200) {
      z++;
    }
  }
  cout << a + b + c + d + e + f + g + h + z << " "
       << a + b + c + d + e + f + g + h;
}
