#include <bits/stdc++.h>
using namespace std;
template <typename A, typename B>
inline void chmin(A &a, B b) {
  if (a > b) a = b;
}
template <typename A, typename B>
inline void chmax(A &a, B b) {
  if (a < b) a = b;
}
long long cnt[20];
signed main() {
  long long N;
  cin >> N;
  vector<long long> A(N);
  for (long long i = 0; i < (N); i++) cin >> A[i];
  for (long long i = 0; i < N; i++) {
    for (long long j = 400; j < 5000; j += 400) {
      if (A[i] < j) {
        cnt[j / 400 - 1]++;
        break;
      }
    }
  }
  long long ans = 0;
  for (long long i = 0; i < 8; i++) ans += (cnt[i] != 0);
  long long tmp = accumulate(cnt + 8, cnt + 20, 0ll);
  cout << ans + (ans == 0 && tmp != 0) << " " << ans + tmp << endl;
  return 0;
}
