#include <bits/stdc++.h>
using namespace std;
long long n;
long long a[114];
long long cnt[9];
signed main() {
  long long p = 0;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) cnt[a[i] / 400]++;
  cnt[8] = cnt[8] + cnt[9] + cnt[10] + cnt[11] + cnt[12];
  for (int i = 0; i < 8; i++) {
    if (cnt[i]) p++;
  }
  cout << p << " " << p + cnt[8] << endl;
  getchar();
  getchar();
  return 0;
}
