#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  map<int, int> s;
  int a;
  for (int i = 0; i < (N); i++) {
    cin >> a;
    int x = min(8, a / 400);
    s[x]++;
  }
  int retval = 0;
  for (auto p : s)
    if (p.second > 0 && p.first < 8) retval++;
  if (s.count(8))
    cout << max(1, retval) << " " << min(8, retval + s[8]) << endl;
  else
    cout << retval << " " << retval << endl;
  return 0;
}
