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