#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s, ans = 0, a8 = 0;
  bool b[8] = {0};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> s;
    int k = s / 400;
    if (k >= 8)
      a8 += 1;
    else
      b[k] = 1;
  }
  for (int i = 0; i < 8; i++) {
    ans += b[i];
  }
  cout << ans << ' ' << flush;
  const int eight = 8;
  cout << (ans + a8 < 8 ? ans + a8 : eight) << endl;
  return 0;
}
