#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  ll n, a, cnt = 0;
  cin >> n;
  map<ll, ll> mp;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if ((a / 400) >= 8) {
      cnt++;
    } else {
      mp[a / 400]++;
    }
  }
  cout << mp.size() << ' ' << mp.size() + cnt << endl;
  return 0;
}
