#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int mi = 0, mx = 0;
  map<int, int> mp;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    mp[x / 400]++;
  }
  for (auto x : mp) {
    if (x.first >= 8)
      mx += x.second;
    else
      mx++, mi++;
  }
  if (!mi) mi = 1;
  if (mp.size() >= 9) mx = 8;
  cout << mi << " " << mx << endl;
  return 0;
}
