#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  int cols[9] = {};
  int b;
  for (int i = 0; i < N; ++i) {
    cin >> a[i];
    b = a[i] / 400;
    if (b > 8) b = 8;
    ++cols[b];
  }
  int cols_min = 0;
  for (int i = 0; i < 8; ++i) {
    if (cols[i]) ++cols_min;
  }
  int cols_max = cols_min + cols[8];
  cout << cols_min << " " << cols_max << endl;
  return 0;
}
