#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll N;
  cin >> N;
  vector<ll> people(N);
  vector<ll> rate(9, 0);
  ll minrate = 0, maxrate = 0;
  for (ll i = 0; i < N; i++) {
    cin >> people[i];
    rate[people[i] / 400]++;
  }
  ll count = 0;
  for (ll i = 0; i < 8; i++) {
    if (rate[i] > 0) count++;
  }
  cout << max(1LL, count) << ' ' << min(9LL, count + rate[8]);
  return 0;
}
