#include <bits/stdc++.h>
using namespace std;
const int MaxN = 100000 + 5, MaxM = 100000 + 5;
int main() {
  int n, rate, max_count;
  int ncount;
  cin >> n;
  vector<int> a(9);
  for (int i = 0; i < n; i++) {
    cin >> rate;
    rate = rate / 400;
    if (rate > 7) rate = 8;
    a[rate] += 1;
  }
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) ncount++;
  }
  int min_count = max(1, ncount);
  max_count = ncount + a[8];
  max_count = min(max_count, 8);
  cout << min_count << ' ' << max_count << endl;
  return 0;
}
