#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int check[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    if (a < 3200) {
      check[a / 400] = 1;
    } else {
      check[8]++;
    }
  }
  int cnt = 0;
  for (int i = 0; i < 8; ++i) {
    cnt += check[i];
  }
  if (cnt == 0) {
    if (check[8] >= 8) {
      cout << 1 << ' ' << 8 << endl;
    } else {
      cout << 1 << ' ' << check[8] << endl;
    }
  } else {
    if ((cnt + check[8]) >= 8) {
      cout << cnt << ' ' << 8 << endl;
    } else {
      cout << cnt << ' ' << cnt + check[8] << endl;
    }
  }
  return 0;
}
