#include <bits/stdc++.h>
using namespace std;
int main() {
  bool jest[8] = {false, false, false, false, false, false, false, false};
  int b3200 = 0;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    int j = 1;
    for (; j <= 8; j++) {
      if (a < 400 * j) break;
    }
    if (j > 8)
      b3200++;
    else {
      jest[j - 1] = true;
    }
  }
  int col = 0;
  for (int j = 0; j < 8; j++)
    if (jest[j]) col++;
  int mn = col;
  if (mn == 0) mn = 1;
  int mx = col + b3200;
  if (mx > 8) mx = 8;
  cout << mn << " " << mx << endl;
  return 0;
}
