#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  int N;
  int i;
  int anyC = 0;
  int rate;
  int c1 = 0;
  int c2 = 0;
  int c3 = 0;
  int c4 = 0;
  int c5 = 0;
  int c6 = 0;
  int c7 = 0;
  int c8 = 0;
  cin >> N;
  for (i = 0; i < N; i++) {
    cin >> rate;
    if (1 <= rate && rate <= 399) {
      c1 = 1;
    } else if (400 <= rate && rate <= 799) {
      c2 = 1;
    } else if (800 <= rate && rate <= 1199) {
      c3 = 1;
    } else if (1200 <= rate && rate <= 1599) {
      c4 = 1;
    } else if (1600 <= rate && rate <= 1999) {
      c5 = 1;
    } else if (2000 <= rate && rate <= 2399) {
      c6 = 1;
    } else if (2400 <= rate && rate <= 2799) {
      c7 = 1;
    } else if (2800 <= rate && rate <= 3199) {
      c8 = 1;
    } else {
      anyC++;
    }
  }
  int minC, maxC;
  minC = c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8;
  int rem = 8 - minC;
  if (anyC >= rem) {
    maxC = 8;
  } else {
    maxC = anyC + minC;
  }
  if (minC == 0) {
    minC = 1;
  }
  cout << minC << " " << maxC << endl;
  return 0;
}
