#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, c[9] = {}, ans = 0;
  cin >> n;
  while (cin >> i) {
    i /= 400;
    if (i >= 8)
      c[8]++;
    else
      c[i] |= 1;
  }
  for (i = 0; i < 8; i++) ans += c[i];
  cout << ans << " " << min(8, ans + c[8]) << "\n";
}
