#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int Flag[9] = {};
  int a;
  int score;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    a /= 400;
    Flag[a]++;
  }
  a = 0;
  for (int i = 0; i < 8; i++) {
    if (Flag[i]) a++;
  }
  if (a == 0) a = 1;
  cout << a << " ";
  cout << a + Flag[8];
  cin >> score;
  return 0;
}
