#include <bits/stdc++.h>
using namespace std;
signed main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (long long i = 0; i < n; i++) {
    cin >> a.at(i);
  }
  vector<long long> c(9);
  for (long long i = 0; i < n; i++) {
    if (a.at(i) > 3199)
      c.at(8)++;
    else
      c.at(a.at(i) / 400)++;
  }
  long long ans = 0;
  for (long long i = 0; i < 8; i++) {
    if (c.at(i)) ans++;
  }
  cout << ans << " " << min(ans + c.at(8), (long long)8) << endl;
}
