#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;
int main() {
  int N;
  cin >> N;
  vector<int> rate(9);
  int a;
  for (int i = 0; i < (N); ++i) {
    cin >> a;
    rate[a / 400]++;
  }
  int colors = 0;
  for (int i = 0; i < (8); ++i) {
    if (rate[i] > 0) {
      colors++;
    }
  }
  int mn = std::max(colors, 1);
  int mx = colors + rate[8];
  cout << mn << " " << mx << endl;
  return 0;
}
