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