#include <bits/stdc++.h>
using namespace std;
int a[8];
int main() {
  int n;
  cin >> n;
  int mi = 0;
  int ma = 0;
  for (int i = 0; i < n; i++) {
    int ai;
    cin >> ai;
    int num = ai / 400;
    if (num >= 8) {
      ma++;
      continue;
    }
    if (a[num] == 0) {
      ma++;
      mi++;
      a[num] = 1;
    }
  }
  if (mi == 0) mi = 1;
  if (ma > 8) ma = 8;
  cout << mi << " " << ma << endl;
  return 0;
}
