#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a;
  int hai = 0, tya = 0, midori = 0, mizu = 0, ao = 0, ki = 0, daidai = 0,
      aka = 0;
  int diff = 0, all = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (1 <= a && a <= 399) {
      if (hai == 0) diff++;
      hai++;
    }
    if (400 <= a && a <= 799) {
      if (tya == 0) diff++;
      tya++;
    }
    if (800 <= a && a <= 1199) {
      if (midori == 0) diff++;
      midori++;
    }
    if (1200 <= a && a <= 1599) {
      if (mizu == 0) diff++;
      mizu++;
    }
    if (1600 <= a && a <= 1999) {
      if (ao == 0) diff++;
      ao++;
    }
    if (2000 <= a && a <= 2399) {
      if (ki == 0) diff++;
      ki++;
    }
    if (2400 <= a && a <= 2799) {
      if (daidai == 0) diff++;
      daidai++;
    }
    if (2800 <= a && a <= 3199) {
      if (aka == 0) diff++;
      aka++;
    }
    if (3200 <= a) {
      if (all < 2) all++;
    }
  }
  if (diff == 8 || all == 0) {
    cout << diff << " " << diff << endl;
  } else {
    if (diff == 7 || all == 1)
      cout << diff << " " << diff + 1 << endl;
    else
      cout << diff << " " << diff + 2 << endl;
  }
  return 0;
}
