#include <bits/stdc++.h>
using namespace std;
int col[9] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
bool memo[8];
int main() {
  int N;
  cin >> N;
  int Nmax = 0, Nmin = 0;
  memset(memo, false, sizeof(memo));
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= col[8]) {
      Nmax++;
      continue;
    }
    for (int j = 0; j < 8; j++) {
      if (col[j] <= a && a < col[j + 1]) {
        if (!memo[j]) {
          memo[j] = true;
        }
        break;
      }
    }
  }
  for (int i = 0; i < 8; i++) {
    if (memo[i]) {
      Nmax++;
      Nmin++;
    }
  }
  cout << Nmin << " " << Nmax << endl;
}
