#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int rate[10] = {};
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int input;
    cin >> input;
    input = input / 400;
    if (input >= 8) input = 8;
    rate[input]++;
  }
  int num = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] > 0) num++;
  }
  int max = num + rate[8];
  if (max >= 9) max = 9;
  int min = num;
  if (min == 0 && rate[8] > 0) min = 1;
  cout << min << " " << max << endl;
  return 0;
}
