#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  bool iro[8] = {false};
  int jiyuu = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] <= 399) {
      iro[0] = true;
    }
    if (400 <= a[i] && a[i] <= 799) {
      iro[1] = true;
    }
    if (800 <= a[i] && a[i] <= 1199) {
      iro[2] = true;
    }
    if (1200 <= a[i] && a[i] <= 1599) {
      iro[3] = true;
    }
    if (1600 <= a[i] && a[i] <= 1999) {
      iro[4] = true;
    }
    if (2000 <= a[i] && a[i] <= 2399) {
      iro[5] = true;
    }
    if (2400 <= a[i] && a[i] <= 2799) {
      iro[6] = true;
    }
    if (2800 <= a[i] && a[i] <= 3199) {
      iro[7] = true;
    }
    if (3200 <= a[i]) {
      jiyuu += 1;
    }
  }
  int shurui = 0;
  for (int i = 0; i < 8; i++) {
    shurui += iro[i];
  }
  cout << shurui << " " << min(8, shurui + jiyuu) << endl;
}
