#include <bits/stdc++.h>
using namespace std;
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];
  }
  int b[9]{};
  for (int i : a) {
    int idx = i / 400;
    if (idx >= 8) {
      idx = 8;
      b[idx]++;
    } else {
      b[idx] = 1;
    }
  }
  int Min = 0;
  for (int i = 0; i < 8; i++) {
    Min += b[i];
  }
  int Max;
  if (Min == 0) {
    Min = 1;
    b[8]--;
  }
  Max = min(8, Min + b[8]);
  cout << Min << " " << Max << "\n";
  return 0;
}
