#include <bits/stdc++.h>
using namespace std;
using lli = long long int;
using i64 = int64_t;
template <class T, class U>
void init_n(vector<T>& v, size_t n, U x) {
  v = vector<T>(n, x);
}
template <class T>
void init_n(vector<T>& v, size_t n) {
  init_n(v, n, T());
}
template <class T>
void read_n(vector<T>& v, size_t n, size_t o = 0) {
  v = vector<T>(n + o);
  for (size_t i = o; i < n + o; ++i) cin >> v[i];
}
template <class T>
void read_n(T a[], size_t n, size_t o = 0) {
  for (size_t i = o; i < n + o; ++i) cin >> a[i];
}
template <class T>
T gabs(const T& x) {
  return max(x, -x);
}
i64 n, b[10];
int main() {
  cin >> n;
  i64 k = 0;
  for (i64 i = 0; i < n; ++i) {
    i64 s;
    cin >> s;
    i64 x = min(i64(8), s / 400);
    b[x]++;
    if (x < 8 && b[x] == 1) ++k;
  }
  cout << k << ' ' << k + b[8] << '\n';
  return 0;
}
