#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bitset<8> s;
  int num_free = 0;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    int c = a / 400;
    if (c >= 8)
      ++num_free;
    else
      s.set(c);
  }
  int ans_min = max((int)s.count(), 1);
  int ans_max = min((int)s.count() + num_free, 8);
  cout << ans_min << " " << ans_max << endl;
  return 0;
}
