#include <bits/stdc++.h>
using namespace std;
int N, rate[9];
int main() {
  cin >> N;
  for (int i = 0; i < 9; i++) rate[i] = 0;
  int r;
  for (int i = 0; i < N; i++) {
    cin >> r;
    if (r >= 3200) r = 3200;
    rate[r / 400]++;
  }
  int color = 0, min_color = 0, max_color = 0;
  for (int i = 0; i < 8; i++)
    if (rate[i] != 0) color++;
  max_color = color + rate[8];
  if (max_color > 8) max_color = 8;
  if (color >= 1) min_color = color;
  if (color == 0) min_color = 1;
  printf("%d %d\n", min_color, max_color);
  return 0;
}
