#include <bits/stdc++.h>
using namespace std;
int main(void) {
  vector<int> vec(9, 0);
  int N, tmp;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> tmp;
    if (tmp <= 399) {
      vec[0] = 1;
    } else if (tmp <= 799) {
      vec[1] = 1;
    } else if (tmp <= 1199) {
      vec[2] = 1;
    } else if (tmp <= 1599) {
      vec[3] = 1;
    } else if (tmp <= 1999) {
      vec[4] = 1;
    } else if (tmp <= 2399) {
      vec[5] = 1;
    } else if (tmp <= 2799) {
      vec[6] = 1;
    } else if (tmp <= 3199) {
      vec[7] = 1;
    } else if (tmp > 3199) {
      vec[8] += 1;
    }
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (vec[i] > 0) {
      count++;
    }
  }
  int min, max;
  if (count > 0) {
    min = count;
  } else {
    min = 1;
  }
  if (count + vec[8] <= 8) {
    max = count + vec[8];
  } else {
    max = 8;
  }
  cout << min << " " << max << endl;
  return 0;
}
