#include <bits/stdc++.h>
using namespace std;
long long i = 0, j = 0, k = 0, a, b, c, d, e, f, g, h, l, m, n, o, p, q, r, s,
          t = 1, u, v, w, x, y, z, maxx = INT_MIN, minn = INT_MAX, ans = 0,
          sum = 0, flag = 0, cnt = 0;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cin >> n;
  long long A[10];
  memset(A, 0, sizeof(A));
  for (long long i = 0; i < (n); i++) {
    cin >> x;
    if (x <= 399) {
      A[1] = 1;
    } else if (x <= 799) {
      A[2] = 1;
    } else if (x <= 1199) {
      A[3] = 1;
    } else if (x <= 1599) {
      A[4] = 1;
    } else if (x <= 1999) {
      A[5] = 1;
    } else if (x <= 2399) {
      A[6] = 1;
    } else if (x <= 2799) {
      A[7] = 1;
    } else if (x <= 3199) {
      A[8] = 1;
    } else {
      A[9]++;
    }
  }
  for (long long i = 1; i <= (8); i++) {
    sum += A[i];
  }
  if (sum == 0) {
    sum = 1;
  }
  cout << sum << " " << sum + A[9] << endl;
  return 0;
}
