#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;
  for (int i = 0; i < N; i++) {
    int r;
    cin >> r;
    if (1 <= r && r <= 399)
      rate[0]++;
    else if (400 <= r && r <= 799)
      rate[1]++;
    else if (800 <= r && r <= 1199)
      rate[2]++;
    else if (1200 <= r && r <= 1599)
      rate[3]++;
    else if (1600 <= r && r <= 1999)
      rate[4]++;
    else if (2000 <= r && r <= 2399)
      rate[5]++;
    else if (2400 <= r && r <= 2799)
      rate[6]++;
    else if (2800 <= r && r <= 3199)
      rate[7]++;
    else if (3200 <= r)
      rate[8]++;
  }
  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;
}
