#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, any = 0, AA = 0,
         re[9] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  bool ans[9] = {};
  cin >> N;
  int a[N];
  for (int i = 0; i < (N); i++) {
    cin >> a[i];
    for (int j = 0; j < (9); j++) {
      if (a[i] < re[j]) {
        ans[j] = 1;
        break;
      }
      if (j == 8) any++;
    }
  }
  for (int i = 0; i < (8); i++)
    if (ans[i]) AA++;
  AA = max(1, AA);
  cout << AA << ' ' << AA + any << endl;
  return 0;
}
