#include <bits/stdc++.h>
using namespace std;
int color[9], n, a, res;
int main(void) {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200)
      color[a / 400]++;
    else
      color[8]++;
  }
  for (int i = 0; i < 8; i++) {
    if (color[i]) res++;
  }
  cout << max(res, 1) << ' ' << min(8, res + color[8]) << endl;
}
