#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const double EPS = 1e-9;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < (n); i++) cin >> a[i];
  sort(a, a + n);
  vector<int> num(9, 0);
  for (int i = 0; i < (n); i++) {
    if (a[i] >= 3200) {
      num[8]++;
      continue;
    }
    for (int j = 0; j < (8); j++) {
      if (a[i] < 400 * (j + 1)) {
        num[j]++;
        break;
      }
    }
  }
  int c = count(num.begin(), num.end(), 0);
  int k = num[8];
  if (k == 0) c--;
  int mi = 8 - c, mx = (8 - c) + k;
  cout << mi << " " << mx << endl;
  return 0;
}
