#include <bits/stdc++.h>
using namespace std;
const int MaxN = 100000 + 5, MaxM = 100000 + 5;
const long long INF = 0x7F7F7F7F7F7F7F7F;
int main() {
  int n;
  long long rate;
  int ncount = 0;
  cin >> n;
  vector<int> a(8);
  for (int i = 0; i < n; i++) {
    cin >> rate;
    rate = rate / 400;
    if (rate > 7) rate = 8;
    a[rate] += 1;
  }
  for (int i = 0; i < 9; i++)
    if (a[i] != 0) ncount++;
  if (ncount > a[8]) ncount = a[8] / ncount + (7 - ncount);
  cout << ncount << ' ' << ncount + a[8] << endl;
  return 0;
}
