#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int val;
  map<int, bool> mp;
  int countMax = 0;
  for (int i = 0; i < n; i++) {
    cin >> val;
    int check = val / 400 + 1;
    if (val >= 3200)
      countMax++;
    else
      mp[check] = true;
  }
  int size = mp.size();
  if (mp.size() != 0)
    cout << mp.size() << " " << min(8, size + countMax);
  else
    cout << "1"
         << " " << min(8, countMax);
}
