#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int A[n], rate[8];
  fill(rate, rate + 8, 0);
  for (int i = 0; i < n; i++) scanf("%d", &A[i]);
  int minv = 0, maxv = 0;
  for (int i = 0; i < n; i++) {
    if (A[i] / 400 >= 8)
      maxv += 1;
    else {
      if (rate[A[i] / 400 - 1] == 0) {
        minv += 1;
        maxv += 1;
        rate[A[i] / 400 - 1] += 1;
      }
    }
  }
  cout << minv << " " << maxv << endl;
  return 0;
}
