#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 mn, mx;
  int cnt[9] = {};
  for (int i = 0; i < n; i++) {
    for (int j = 1; j <= 8; j++) {
      if (a[i] < 400 * j) {
        cnt[j - 1]++;
        break;
      }
      if (j == 8) {
        cnt[j]++;
      }
    }
  }
  mn = 0;
  mx = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i] > 0) {
      mn++;
      mx++;
    }
  }
  if (mn == 0) {
    mn = 1;
  }
  mx += cnt[8];
  mx = min(8, mx);
  cout << mn << " " << mx << endl;
  return 0;
}
