#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a;
  int free = 0, color = 0;
  map<int, bool> m;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    a < 3200 ? m[a / 400] = true : m[3200] = true;
    if (a / 400 >= 8) {
      free++;
    }
  }
  for (auto itr = m.begin(); itr != m.end(); itr++) color++;
  if (free != 0) color--;
  color == 0 ? cout << "1"
                    << " "
             : cout << color << " ";
  ((color + free > 8) ? cout << "8" : cout << color + free) << endl;
}
