#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int sum = 0;
  map<int, int> mp;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    int x = a / 400;
    if (x >= 8) {
      sum++;
      continue;
    }
    mp[x]++;
  }
  int ansmin = mp.size(), ansmax;
  if (mp.size() + sum > 8)
    ansmax = 8;
  else
    ansmax = mp.size() + sum;
  cout << ansmin << " " << ansmax << endl;
  return;
}
int main() {
  solve();
  return 0;
}
