#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vc = vector<char>;
using vvl = vector<vl>;
using vvc = vector<vc>;
using pll = pair<ll, ll>;
using vpll = vector<pll>;
int main() {
  ll N;
  cin >> N;
  vl cols(9, 0);
  ll a;
  for (int i = 0; i < (int)(N); i++) {
    cin >> a;
    cols[min(a / 400, (ll)8)]++;
  }
  ll cnt = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (cols[i] > 0) cnt++;
  }
  if (cnt == 0) {
    cout << 1 << ' ' << cols[8] << endl;
  } else {
    cout << cnt << ' ' << min((ll)8, cnt + cols[8]) << endl;
  }
  return 0;
}
