#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);
  bitset<8> bs(0);
  long long cnt = 0;
  for (long long i = 0; i < (long long)(n); i++) {
    cin >> a[i];
    if (a[i] >= 3200)
      cnt++;
    else
      bs[a[i] / 400] = 1;
  }
  cout << bs.count() << " " << bs.count() + cnt << endl;
}
