#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a;
  cin >> n;
  int i;
  int rate[9] = {};
  for (i = 0; i < n; i++) {
    cin >> a;
    rate[a / 400]++;
  }
  int min = 0;
  for (i = 0; i < 8; i++) {
    if (rate[i]) min++;
  }
  cout << min << " " << min + rate[8] << endl;
  return 0;
}
