#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
int main(void) {
  map<ll, ll> m;
  ll c = 0;
  ll N;
  cin >> N;
  for (ll i = 0; i < N; i++) {
    ll temp;
    cin >> temp;
    if (temp >= 3200) {
      c++;
    } else {
      m[temp / 400] += 1;
    }
  }
  cout << m.size() + (c > 0 ? 1 : 0) << ' ' << m.size() + c << endl;
  return 0;
}
