#include <bits/stdc++.h>
using namespace std;
static const int MAX = 100000;
int cunt, cunt0, color[9], a;
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    color[a / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (color[i])
      cunt++;
    else
      cunt0++;
  }
  int min_cunt;
  if (cunt)
    min_cunt = cunt;
  else
    min_cunt = 1;
  int max_cunt = cunt + color[8];
  cout << min_cunt << " " << max_cunt << "\n";
  return 0;
}
