#include <bits/stdc++.h>
using namespace std;
template <class T>
bool max_self(T& a, const T& b) {
  return b > a ? a = b, true : false;
}
template <class T>
bool min_self(T& a, const T& b) {
  return b < a ? a = b, true : false;
}
const int INF = 1e9 + 7;
const double PI = acos(-1.0);
const double EPS = (1e-9);
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int N, cnt[10], diff = 0;
  memset(cnt, 0, sizeof cnt);
  cin >> N;
  for (int rep = 0, x; rep < N; ++rep) {
    cin >> x;
    x /= 400;
    if (x > 7)
      cnt[8]++;
    else
      cnt[x]++;
  }
  for (int rep = 0; rep < 8; ++rep)
    if (cnt[rep] > 0) diff++;
  cout << diff << " " << diff + cnt[8] << '\n';
  return 0;
}
