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