#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int a[n], b[n];
  int num = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    b[i] = a[i] / 400;
    if (b[i] >= 8) {
      num++;
    }
  }
  int c[8] = {0};
  for (int i = 0; i < n; i++) {
    c[b[i]]++;
  }
  int niko = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i]) {
      niko++;
    }
  }
  if (niko) {
    cout << niko << " " << niko + num << endl;
  } else {
    cout << 1 << " " << num << endl;
  }
  return 0;
}
