#include <bits/stdc++.h>
using namespace std;
using vi = vector<long long>;
using vs = vector<string>;
using vvi = vector<vi>;
using pii = pair<long long, long long>;
using psi = pair<string, long long>;
const long long dx[4] = {1, 0, -1, 0};
const long long dy[4] = {0, 1, 0, -1};
const long long mod = 1e9 + 7;
long long gcd(long long a, long long b) {
  if (a % b == 0) {
    return (b);
  } else {
    return (gcd(b, a % b));
  }
}
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
long long N, M, K, H, W, L, R, X;
signed main() {
  cin >> N;
  vi A(N);
  vi clr(8, 0);
  for (long long i = 0; i < (long long)N; i++) {
    cin >> A[i];
    if (A[i] < 400)
      clr[0]++;
    else if (A[i] < 800)
      clr[1]++;
    else if (A[i] < 1200)
      clr[2]++;
    else if (A[i] < 1600)
      clr[3]++;
    else if (A[i] < 2000)
      clr[4]++;
    else if (A[i] < 2400)
      clr[5]++;
    else if (A[i] < 2800)
      clr[6]++;
    else if (A[i] < 3200)
      clr[7]++;
    else
      clr[8]++;
  }
  long long mn = 0;
  for (long long i = 0; i < (long long)8; i++) {
    if (clr[i] > 0) mn++;
  }
  long long mx = mn + clr[8];
  cout << mn << " " << mx << endl;
  return 0;
}
