#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N + 10], go = 0, color[8] = {0, 0, 0, 0, 0, 0, 0, 0}, sum = 0;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] / 400 < 8) {
      color[a[i] / 400] += 1;
    } else {
      go += 1;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) {
      sum += 1;
    }
  }
  if (sum + go >= 8) {
    cout << sum << ' ' << '8' << endl;
  } else {
    cout << sum << ' ' << sum + go << endl;
  }
}
