#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, c, cc, ans1, ans2;
  cin >> N;
  c = 0;
  cc = 0;
  vector<int> s(N);
  map<int, int> S;
  for (int i = 0; i < N; i++) {
    cin >> s[i];
    int r = s[i] / 400;
    if (r < 8) {
      S[r] += 1;
    } else {
      cc++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (S.count(i) == 0) c++;
  }
  if (cc >= c) {
    ans1 = 8;
  } else {
    ans1 = 8 - c + cc;
  };
  if (8 - c >= cc) {
    ans2 = 8 - c;
  } else {
    ans2 = (8 - c) + (8 - c - cc);
  };
  cout << ans2 << " " << ans1 << endl;
}
