#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int count[9];
  for (int i = (0); i < (9); ++i) count[i] = 0;
  for (int i = (0); i < (N); ++i) {
    int a;
    cin >> a;
    ++count[min(a / 400, 8)];
  }
  int min_val = 0, max_val = 0;
  if (count[8] == N) {
    min_val = 1;
    max_val = min(count[8], 8);
  } else {
    for (int i = (0); i < (8); ++i) {
      if (count[i] != 0) ++min_val;
    }
    max_val = min(8, min_val + count[8]);
  }
  cout << min_val << " " << max_val << endl;
  return 0;
}
