#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  int a;
  int free = 0;
  int minkind = 0;
  int maxkind = 0;
  vector<int> rate(8, 0);
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    a /= 400;
    if (a >= 8) {
      free++;
    } else {
      rate[a]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (rate[i] > 0) {
      minkind++;
    }
  }
  if (free > 0) {
    minkind = (((1) < (minkind)) ? (minkind) : (1));
  }
  maxkind = minkind + free;
  cout << minkind << " " << maxkind << "\n";
  return 0;
}
