#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n;
  scanf("%lld", &n);
  ;
  vector<bool> used(8, false);
  vector<long long> data(n);
  for (long long i = 0; i < n; i++) cin >> data[i];
  sort((data).begin(), (data).end());
  long long free = 0;
  for (long long i = 0; i < n; i++) {
    long long tmp = data[i];
    if (tmp < 3200) {
      used[tmp / 400] = true;
    } else {
      free++;
    }
  }
  long long ans = 0;
  for (long long i = 0; i < 8; i++) {
    if (used[i]) {
      ans++;
    }
  }
  cout << max(ans, (long long)1) << " ";
  cout << min(ans + free, (long long)8) << endl;
  return 0;
}
