#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int a[9] = {};
  for (int i = 0; i < n; i++) {
    int ai;
    cin >> ai;
    ai = ai / 400;
    a[ai]++;
  }
  int m = 0;
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) {
      m++;
    }
  }
  cout << m << " " << min(m + a[8], 8) << endl;
}
