#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int(i) = 0; (i) < (n); i++) {
    cin >> a[i];
  }
  int ratecolor[8];
  for (int(i) = 0; (i) < (8); i++) {
    ratecolor[i] = 0;
  }
  int overred = 0;
  for (int(i) = 0; (i) < (n); i++) {
    int c = a[i] / 400;
    if (c > 7) {
      overred++;
      continue;
    }
    ratecolor[c] = 1;
  }
  int colors = 0;
  for (int(i) = 0; (i) < (8); i++) {
    colors = colors + ratecolor[i];
  }
  if (colors == 0) {
    cout << 1 << " " << overred << endl;
  } else {
    cout << colors << " ";
    colors = colors + overred;
    if (colors > 7) colors = 8;
    cout << colors << endl;
  }
  return 0;
}
