#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  int cnt[9] = {0};
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 8; j++) {
      if (j * 400 <= a[i] && a[i] < (j + 1) * 400) cnt[j]++;
    }
    if (3200 <= a[i]) cnt[8]++;
  }
  int mn = 0, mx = 0;
  for (int j = 0; j < 8; j++) {
    if (cnt[j] > 0) {
      mn++;
      mx++;
    }
  }
  if (mn == 0) mn++;
  if (cnt[8] > 0) mx = min(mx + cnt[8], 8);
  cout << mn << ' ' << mx << endl;
}
