#include <bits/stdc++.h>
using namespace std;
long long MOD = 1e9 + 7;
long long INF = 1e18;
void chmin(long long &a, long long b) {
  if (a > b) a = b;
}
void chmax(long long &a, long long b) {
  if (a < b) a = b;
}
void pmod(long long &a, long long b) { a = (a + b) % MOD; }
void qmod(long long &a, long long b) { a = (a * b) % MOD; }
void ans1(bool x) {
  if (x)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
void ans2(bool x) {
  if (x)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
void ans3(bool x) {
  if (x)
    cout << "Yay!" << endl;
  else
    cout << ":(" << endl;
}
void ans(bool x, long long y, long long z) {
  if (x)
    cout << y << endl;
  else
    cout << z << endl;
}
void anss(bool x, string y, string z) {
  if (x)
    cout << y << endl;
  else
    cout << z << endl;
}
long long gcd(long long x, long long y) {
  long long r;
  while ((r = x % y) != 0) {
    x = y;
    y = r;
  }
  return y;
}
int main() {
  long long i, j, o;
  long long res = 0, res1 = 0, res2 = INF, buf = 0, buf1 = 0, buf2 = 0,
            buf3 = 0, buf4 = 0;
  bool judge = true;
  long long n;
  cin >> n;
  vector<long long> hash(8);
  for (i = 0; i < n; i++) {
    cin >> buf;
    if (buf < 3200) {
      if (hash[buf / 400] == 0) {
        res++;
        hash[buf / 400] = 1;
      }
    } else {
      res1++;
    }
  }
  cout << res << " " << res + res1 << endl;
  return 0;
}
