#include <bits/stdc++.h>
using namespace std;
int judge(int n) {
  int j = 400;
  int i;
  bool over = true;
  for (i = 0; i <= 8; i++) {
    if (n < i * j) {
      over = false;
      break;
    }
  }
  if (over)
    return 8;
  else
    return i - 1;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int mini = 0, maxi = 0, a, n;
  cin >> n;
  vector<int> score(9, 0);
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (judge(a) == 8)
      maxi++;
    else {
      ++(score[judge(a)]);
    }
  }
  for (int i = 0; i < 8; i++) {
    if (score[i] != 0) {
      mini++;
      maxi++;
    }
  }
  cout << mini << " " << maxi << '\n';
}
