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