#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n = 0;
  cin >> n;
  long long free = 0;
  map<long long, long long> mp;
  for (int i = 0; i < n; i++) {
    long long r = 0;
    cin >> r;
    if (r >= 3200)
      free++;
    else
      mp[r / 400]++;
  }
  cout << max((long long)mp.size(), free) << " "
       << min((long long)9, (long long)mp.size() + free) << endl;
}
