#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll n;
  cin >> n;
  map<ll, ll> m;
  ll pro = 0;
  for (int i = (0); i < (n); i++) {
    ll a;
    cin >> a;
    if (a < 3200)
      m[a / 400]++;
    else
      pro++;
  }
  ll siz = m.size();
  ll mini = 1;
  if (siz != 0) mini = siz;
  ll maxi = 8;
  if (siz != 8) maxi = min(8LL, siz + pro);
  cout << mini << " " << maxi << "\n";
}
