#include <bits/stdc++.h>
using namespace std;
const int INTINF = 1 << 29;
const long long LLINF = 1LL << 61;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-9;
const int DX[8] = {0, 1, 0, -1, 1, 1, -1, -1};
const int DY[8] = {1, 0, -1, 0, 1, -1, 1, -1};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  int a;
  int cnt[9] = {};
  cin >> n;
  int wild = 0;
  for (int i = (0); i < (n); ++i) {
    cin >> a;
    if (a >= 3200) {
      cnt[8]++;
    } else {
      cnt[a / 400] = 1;
    }
  }
  int sm = 0;
  for (int i = (0); i < (8); ++i) {
    sm += cnt[i];
  }
  cout << max(sm, 1) << " " << min(sm + cnt[8], 8) << endl;
}
