#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n = 0, rate[9] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199, 3200},
      b[9] = {};
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 8; j++) {
      if (a[i] >= rate[8]) {
        b[8]++;
        break;
      }
      if ((rate[j] - 399) <= a[i] && a[i] <= rate[j]) {
        b[j]++;
        break;
      }
    }
  }
  int color = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i] > 0) {
      color++;
    }
  }
  cout << color << " " << color + b[8] << endl;
}
