#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, acc[10] = {0};
  int t = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200) a = 3200;
    acc[((a) / 400)]++;
  }
  for (int i = 0; i <= 7; i++) {
    if (acc[i] > 0) t++;
  }
  cout << t << " " << (t + acc[7 + 1]) << endl;
  return 0;
}
