#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long rate[9];
  for (long long i = 0; i < 9; i++) {
    rate[i] = 400 * i;
  }
  long long count[9];
  fill(count, count + 9, 0);
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    long long a;
    cin >> a;
    for (long long i = 0; i + 1 < 9; i++) {
      if (rate[i] <= a && a < rate[i + 1]) count[i]++;
    }
    if (a >= rate[8]) count[8]++;
  }
  long long ans = 0;
  for (long long i = 0; i < 8; i++) {
    if (count[i]) ans++;
  }
  cout << ans << " " << min(8LL, ans + count[8]) << endl;
  return 0;
}
