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