#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vint = vector<int>;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n, x, kmin = 0, kmax;
  int rate[9] = {};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x >= 3200) {
      rate[8]++;
    } else {
      rate[x / 400]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) {
      kmin++;
    }
  }
  kmax = min(kmin + rate[8], 8);
  if (kmin == 0) {
    kmin = 1;
  }
  cout << kmin << " " << kmax << "\n";
  return 0;
}
