#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  int r[101];
  int map[8];
  int p;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> r[i];
    if (r[i] < 3200) {
      map[r[i] / 400] = 1;
    } else {
      p++;
    }
  }
  int c = 0;
  for (int i = 0; i < 8; i++) {
    c += map[i];
  }
  int cmax = c;
  int cmin = c;
  cmax = cmax + p;
  if (cmax > 8) cmax = 8;
  cout << cmin << " " << cmax;
}
