#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, r = 0, min = 0;
  bool rate[8] = {};
  cin >> n;
  for (int i = 0; i != n; i++) {
    int a;
    cin >> a;
    if (a < 3200)
      rate[a / 400 - 1] = true;
    else
      r++;
  }
  for (int i = 0; i != 8; i++) min += (int)rate[i];
  if (min == 0)
    cout << 1 << " " << r << endl;
  else
    cout << min << " " << min + r << endl;
  return 0;
}
