#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, i, c = 0, co = 0;
  int color[8] = {};
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200) {
      color[a / 400] = 1;
    } else {
      co++;
    }
  }
  for (i = 0; i < 8; i++) {
    c += color[i];
  }
  cout << max(1, c) << ' ' << min(8, c + co);
  return 0;
}
