#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];
  }
  int rateBound[] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199, 4801};
  int rateDist[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < N; ++i) {
    for (int j = 0; j < 9; ++j) {
      if (a[i] <= rateBound[j]) {
        rateDist[j]++;
        break;
      }
    }
  }
  int result = 0;
  for (int i = 0; i < 8; ++i) {
    if (rateDist[i] != 0) {
      result++;
    }
  }
  cout << result << " " << result + rateDist[8] << endl;
}
