#include <bits/stdc++.h>
using namespace std;
const long long INF = numeric_limits<long long>::max() / 4;
const long long MOD = 1e9 + 7;
const int n_max = 1e5 + 10;
template <class T>
bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (long long i = 0; i < (long long)(n); i++) cin >> a[i];
  vector<long long> cnt(9, 0);
  for (long long i = 0; i < (long long)(n); i++) {
    long long t = a[i] / 400;
    chmin(t, 8LL);
    cnt[t]++;
  }
  long long min_ = 0, max_ = 0;
  for (long long i = 0; i < (long long)(8); i++) {
    if (cnt[i]) {
      min_++;
      max_++;
    }
  }
  max_ += cnt[8];
  cout << min_ << " " << max_ << endl;
}
