#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int a[10];
  for (int i = 0; i < 9; ++i) {
    a[i] = 0;
  }
  int n;
  cin >> n;
  int over = 0;
  for (int i = 0; i < n; ++i) {
    int tmp;
    cin >> tmp;
    if (tmp <= 399) {
      a[1] = 1;
    } else if ((400 <= tmp) && (tmp <= 799)) {
      a[2] = 1;
    } else if ((800 <= tmp) && (tmp <= 1199)) {
      a[3] = 1;
    } else if ((1200 <= tmp) && (tmp <= 1599)) {
      a[4] = 1;
    } else if ((1600 <= tmp) && (tmp <= 1999)) {
      a[5] = 1;
    } else if ((2000 <= tmp) && (tmp <= 2399)) {
      a[6] = 1;
    } else if ((2400 <= tmp) && (tmp <= 2799)) {
      a[7] = 1;
    } else if ((2800 <= tmp) && (tmp <= 3199)) {
      a[8] = 1;
    } else if (3200 <= tmp) {
      ++over;
    }
  }
  int sum = 0;
  int mmax;
  for (int i = 1; i <= 8; ++i) {
    sum += a[i];
  }
  if (sum == 0) {
    mmax = 1;
  } else {
    mmax = sum + over;
  }
  if (mmax > 8) {
    mmax = 8;
  }
  cout << sum << " " << mmax << endl;
}
