#include <bits/stdc++.h>
using namespace std;
using VI = vector<int>;
using VVI = vector<VI>;
using PII = pair<int, int>;
using LL = long long;
using VL = vector<LL>;
using VVL = vector<VL>;
using PLL = pair<LL, LL>;
using VS = vector<string>;
template <class S, class T>
istream& operator>>(istream& is, pair<S, T>& p) {
  return is >> p.first >> p.second;
}
template <class S, class T>
ostream& operator<<(ostream& os, const pair<S, T>& p) {
  return os << p.first << " " << p.second;
}
template <class T>
void maxi(T& x, T y) {
  if (x < y) x = y;
}
template <class T>
void mini(T& x, T y) {
  if (x > y) x = y;
}
const double EPS = 1e-10;
const double PI = acos(-1.0);
const LL MOD = 1e9 + 7;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> cnt(9);
  VI xs = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 5000};
  for (int i = (0); i < (N); ++i) {
    int x;
    cin >> x;
    for (int j = (0); j < (int((xs).size())); ++j)
      if (x < xs[j]) {
        cnt[j]++;
        break;
      }
  }
  int c = 0;
  for (int i = (0); i < (8); ++i) c += (cnt[i] ? 1 : 0);
  cout << max(1, c) << " " << min(8, c + cnt[8]) << endl;
  return 0;
}
