#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 (check != 9)
      mp[check] = true;
    else
      countMax++;
  }
  int size = mp.size();
  cout << mp.size() << " " << min(8, size + countMax);
}
