#include <bits/stdc++.h>
using namespace std;
int main() {
  map<int, int> s;
  int n, a;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200)
      s[a / 400]++;
    else
      s[8]++;
  }
  if (s[8] > 0)
    cout << s.size() - 1 << " " << min((int)s.size() + s[8] - 1, 8) << endl;
  else
    cout << s.size() - 1 << " " << s.size() - 1 << endl;
  return 0;
}
