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