#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int num[9] = {0};
  for (int i = 0; i < n; ++i) {
    int ra;
    cin >> ra;
    if (ra < 3200)
      num[ra / 400]++;
    else
      num[8]++;
  }
  int count = 0;
  for (int j = 0; j < 8; j++) {
    if (num[j] > 0) count++;
  }
  cout << count << " " << count + num[8] << endl;
  return 0;
}
