#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vec = vector<ll>;
using mat = vector<vec>;
using pll = pair<ll, ll>;
int main() {
  ll N;
  cin >> N;
  vec A(N);
  for (ll(i) = (0), (i_len) = (N); (i) < (i_len); ++(i)) cin >> A[i];
  vec C(8, 0);
  ll cnt1 = 0, cnt2 = 0;
  for (ll(i) = (0), (i_len) = (N); (i) < (i_len); ++(i)) {
    if (A[i] < 3200)
      C[A[i] / 400] = 1;
    else
      ++cnt2;
  }
  for (ll(i) = (0), (i_len) = (8); (i) < (i_len); ++(i)) cnt1 += C[i];
  cout << (cnt1) << " ";
  cout << ((((8) < (cnt1 + cnt2)) ? (8) : (cnt1 + cnt2))) << endl;
  return 0;
}
