#include <bits/stdc++.h>
using namespace std;
int main() {
  int arlong;
  cin >> arlong;
  int ar[arlong];
  int color[8] = {0};
  int more = 0;
  for (int i = 0; i < arlong; i++) {
    cin >> ar[i];
  }
  for (int i = 0; i < arlong; ++i) {
    if (ar[i] < 3200) {
      if (color[ar[i] / 400] == 0) {
        color[ar[i] / 400] = 1;
      }
    } else {
      more++;
    }
  }
  int sum = 0;
  for (int i = 0; i < 8; ++i) {
    sum += color[i];
  }
  if ((sum + more) > 8) {
    more = (8 - sum);
  }
  cout << sum << " " << (sum + more) << endl;
  return 0;
}
