#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  map<int, int> mp;
  int a;
  for (int(i) = 0; (i) < (N); (i)++) {
    cin >> a;
    mp[min(8, a / 400)]++;
  }
  int mi, ma;
  mi = max(1, (int)mp.size() - ((mp.count(8)) ? 1 : 0));
  ma = min(mi + mp[8], 8);
  cout << mi << " " << ma << endl;
  return 0;
}
