#include <bits/stdc++.h>
using namespace std;
int isColor(int rate) {
  if (rate <= 399)
    return 0;
  else if (rate <= 799)
    return 1;
  else if (rate <= 1199)
    return 2;
  else if (rate <= 1599)
    return 3;
  else if (rate <= 1999)
    return 4;
  else if (rate <= 2399)
    return 5;
  else if (rate <= 2799)
    return 6;
  else if (rate <= 3199)
    return 7;
  else
    return 8;
}
int main(void) {
  int N;
  scanf("%d", &N);
  int a[100];
  set<int> colors;
  int flee = 0;
  for (int i = 0; i < N; i++) {
    scanf("%d", &a[i]);
    int color = isColor(a[i]);
    if (color <= 7)
      colors.insert(color);
    else
      flee++;
  }
  int M, m;
  m = max((int)colors.size(), 1);
  M = min((int)colors.size() + flee, 8);
  printf("%d %d\n", m, M);
  return 0;
}
