#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a, t, c = 0, i, min = 0;
  int arr[8] = {0};
  cin >> N;
  for (i = 0; i < N; ++i) {
    cin >> a;
    t = a / 400;
    if (t >= 8) {
      c += 1;
    } else {
      arr[t] = true;
    }
  }
  for (i = 0; i < 8; ++i)
    if (arr[i]) ++min;
  cout << min << " " << min + c << endl;
}
