#include <bits/stdc++.h>
using namespace std;
long long min(long long a, long long b) {
  if (a > b) return b;
  return a;
}
signed main() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (signed i = 0; i < n; ++i) cin >> a[i];
  bool res[8] = {false};
  long long free = 0;
  for (signed i = 0; i < n; ++i) {
    if (a[i] >= 3200) {
      free++;
      continue;
    }
    for (signed j = 0; j < 8; ++j) {
      if (a[i] < 400 * (j + 1)) {
        res[j] = true;
        break;
      }
    }
  }
  long long ans = 0;
  for (signed i = 0; i < 8; ++i)
    if (res[i]) ans++;
  cout << ans << " ";
  ans = min(8, ans + free);
  cout << ans << endl;
  return 0;
}
