#include <bits/stdc++.h>
using namespace std;
int main() {
  int c[10] = {};
  int n, m;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> m;
    int ret = m / 400;
    if (ret >= 8)
      c[8]++;
    else
      c[ret]++;
  }
  int s = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i] != 0) {
      s++;
    }
  }
  cout << max(1, s) << " " << min(s + c[8], 8) << endl;
  return 0;
}
