#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const long long INF = 1e18;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (long long i = 0; i < (n); ++i) cin >> a[i];
  vector<bool> v(8, false);
  int p = 0;
  for (long long i = 0; i < (n); ++i) {
    int now = a[i];
    now /= 400;
    if (now > 7) {
      p++;
    } else {
      v[now] = true;
    }
  }
  int m = 0;
  for (long long i = 0; i < (8); ++i) {
    if (v[i]) m++;
  }
  cout << m << ' ' << min(m + p, 8) << endl;
  return 0;
}
