#include <bits/stdc++.h>
using namespace std;
const long mod = 1e9 + 7;
int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N; ++i) cin >> A[i];
  array<int, 8> rate{0, 0, 0, 0, 0, 0, 0, 0};
  int max_ = 0;
  for (auto a : A) {
    if (a > 3199)
      ++max_;
    else if (a > 2799)
      rate[7] = 1;
    else if (a > 2399)
      rate[6] = 1;
    else if (a > 1999)
      rate[5] = 1;
    else if (a > 1599)
      rate[4] = 1;
    else if (a > 1199)
      rate[3] = 1;
    else if (a > 799)
      rate[2] = 1;
    else if (a > 399)
      rate[1] = 1;
    else
      rate[0] = 1;
  }
  cout << accumulate(rate.begin(), rate.end(), 0) << ' '
       << accumulate(rate.begin(), rate.end(), 0) + max_ << endl;
  return 0;
}
