#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.first < 8) retval++;
  if (retval > 0 && !s.count(8))
    cout << retval << " " << retval << endl;
  else if (retval == 0 && s.count(8))
    cout << 1 << " " << min(8, s[8]) << endl;
  else if (retval > 0 && s.count(8))
    cout << retval << " " << min(8, s[8] + retval) << endl;
  return 0;
}
