#include <bits/stdc++.h>
using namespace std;
long long N;
long long cnt[9];
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> N;
  for (long long i = 0; i < N; i++) {
    long long a;
    cin >> a;
    a = min(3200ll, a);
    cnt[a / 400]++;
  }
  long long ans = 0;
  for (long long i = 0; i < 8; i++) ans += cnt[i] > 0;
  if (cnt[8] == 0)
    cout << ans << " " << ans << endl;
  else
    cout << ans << " " << ans + cnt[8] << endl;
}
