#include <bits/stdc++.h>
using namespace std;
int main() {
  int min = 0, max = 0, s, N, b, oth = 0;
  cin >> N;
  int a[8] = {0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < N; i++) {
    cin >> s;
    b = s / 400;
    if (b >= 8)
      oth++;
    else
      a[b] = 1;
  }
  for (int j = 0; j < 8; j++) min += a[j];
  cout << min << " " << min + oth;
}
