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