#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  scanf("%d", &N);
  int a[100];
  int col[9];
  for (int i = 0; i < 9; i++) col[i] = 0;
  for (int i = 0; i < N; i++) {
    scanf("%d", &a[i]);
    if (a[i] >= 3200)
      col[8]++;
    else
      col[a[i] / 400]++;
  }
  int cn = 0;
  for (int i = 0; i < 8; i++)
    if (col[i] > 0) cn++;
  int min, max;
  if (col[8] > 8 - cn) col[8] = 8 - cn;
  if (cn == 0) cn = 1;
  min = cn;
  max = cn + col[8];
  printf("%d %d\n", min, max);
  return 0;
}
