#include <bits/stdc++.h>
using namespace std;
int col[8];
int main(void) {
  int tmp = 0;
  int N, a;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> a;
    if (3200 <= a) {
      ++tmp;
      continue;
    }
    int ind = a / 400;
    ++col[ind];
  }
  int min, max;
  int cnt = 0;
  for (int i = 0; i < 8; ++i) {
    if (col[i] > 0) ++cnt;
  }
  min = cnt;
  max = cnt + tmp;
  if (min == 0) min = 1;
  if (max > 8) max = 8;
  cout << min << " " << max << endl;
  return 0;
}
