#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b != 0 ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
const long long INF = 1e16;
const long long MOD = 1e9 + 7;
long long a, b, c, n, m, x, y, z, w, h, ans, cnt, mx, mn;
string s, t;
vector<long long> dx = {-1, 0, 1, 0}, dy = {0, -1, 0, 1};
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  while (cin >> n) {
    long long v[9] = {};
    for (long long i = long long(0); i < long long(n); i++) {
      cin >> a;
      v[a / 400]++;
    }
    ans = 0;
    for (long long i = long long(0); i < long long(8); i++) {
      if (v[i]) {
        ans++;
      }
    }
    cout << (max(1LL, ans)), cout << (' '), cout << (ans + v[8]) << '\n';
  }
}
