#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int rate[9] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  int color[9] = {};
  for (int i = 0; i < N; i++) {
    int buf;
    cin >> buf;
    for (int j = 0; j < 8; j++) {
      if (rate[j] <= buf && buf < rate[j + 1]) {
        color[j]++;
      }
    }
    if (rate[8] <= buf) {
      color[8]++;
    }
  }
  int min = 0;
  int max;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) min++;
  }
  if (min == 0) {
    min = 1;
    if (color[8] <= 8)
      max = color[8];
    else
      max = 8;
  }
  if (min + color[8] > 8 && min != 0) {
    max = 8;
  } else {
    max = min + color[8];
  }
  cout << min << " " << max << endl;
  return 0;
}
