#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a, m = 0;
  cin >> N;
  set<int> s;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a < 3200)
      s.insert(a / 400);
    else
      m++;
  }
  int ssize = s.size();
  if (s.size())
    cout << ssize << " " << min(8, ssize + m) << endl;
  else
    cout << 1 << " " << min(8, m) << endl;
}
