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