#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  bool rate[8];
  int god = 0;
  for (int i = 0; i < N; ++i) {
    cin >> a[i];
    rate[i] = false;
  }
  for (int i = 0; i < N; ++i) {
    for (int j = 0; j < 8; ++j) {
      if (400 * j <= a[i] && a[i] < 400 * (j + 1)) rate[j] = true;
    }
    if (a[i] >= 3200) ++god;
  }
  int countmin = 0;
  for (int j = 0; j < 8; ++j) {
    if (rate[j]) ++countmin;
  }
  cout << countmin << ' ' << countmin + god << endl;
}
