#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N], i;
  int b[13] = {};
  for (i = 0; i < N; ++i) {
    cin >> a[i];
    ++b[a[i] / 400];
  }
  int j = 0, k = 0;
  for (i = 0; i < 8; ++i) {
    if (b[i] > 0) ++j;
  }
  for (; i < 13; ++i) {
    if (b[i] > 0) k += b[i];
  }
  cout << j << ' ';
  int m = j + k;
  if (m > 8)
    cout << 8 << endl;
  else
    cout << m << endl;
  return 0;
}
