#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  const int rate_num = 8;
  int rate_under[] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800};
  int rate_upper[] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199};
  int color_num[] = {0, 0, 0, 0, 0, 0, 0, 0};
  int over_num = 0;
  int a;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    bool over_flag = true;
    for (int j = 0; j < rate_num; j++) {
      if (rate_upper[j] >= a) {
        color_num[j] = color_num[j] + 1;
        over_flag = false;
        break;
      }
    }
    if (over_flag) {
      over_num++;
    }
  }
  int color_min = 0;
  int color_max = 0;
  for (int i = 0; i < rate_num; i++) {
    if (color_num[i] != 0) {
      color_max++;
      color_min++;
    }
  }
  color_max += over_num;
  color_max = (color_max > 8) ? 8 : color_max;
  if (color_min == 0 && color_max != 0) {
    color_min = 1;
  }
  cout << color_min << " " << color_max << endl;
}
