#include <bits/stdc++.h>
using namespace std;
int K[8], u;
void check(int x) {
  if (x >= 1 && x <= 399) {
    K[0] = 1;
  }
  if (x >= 400 && x <= 799) {
    K[1] = 1;
  }
  if (x >= 800 && x <= 1199) {
    K[2] = 1;
  }
  if (x >= 1200 && x <= 1599) {
    K[3] = 1;
  }
  if (x >= 1600 && x <= 1999) {
    K[4] = 1;
  }
  if (x >= 2000 && x <= 2399) {
    K[5] = 1;
  }
  if (x >= 2400 && x <= 2799) {
    K[6] = 1;
  }
  if (x >= 2800 && x <= 3199) {
    K[7] = 1;
  }
  if (x >= 3200) {
    u++;
  }
}
int main() {
  int n;
  cin >> n;
  while (n--) {
    int x;
    cin >> x;
    check(x);
  }
  int ans_1 = 0;
  for (int i = 0; i < 8; i++) {
    ans_1 += K[i];
  }
  cout << max(1, ans_1) << ' ' << min(8, ans_1 + min(8 - ans_1, u)) << endl;
  return 0;
}
