#include <bits/stdc++.h>
int gry, brn, grn, lble, ble, yrw, org, red, max, min, none;
int score[100];
int main() {
  int i, n;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &score[i]);
    if (score[i] >= 1 && score[i] < 400) gry = 1;
    if (score[i] >= 400 && score[i] < 800) brn = 1;
    if (score[i] >= 800 && score[i] < 1200) grn = 1;
    if (score[i] >= 1200 && score[i] < 1600) lble = 1;
    if (score[1] >= 1600 && score[i] < 2000) ble = 1;
    if (score[i] >= 2000 && score[i] < 2400) yrw = 1;
    if (score[i] >= 2400 && score[i] < 2800) org = 1;
    if (score[i] >= 2800 && score[i] < 3200) red = 1;
    if (score[i] >= 3200) none++;
  }
  min = gry + brn + grn + lble + ble + yrw + org + red;
  max = min + none;
  if (max > 8) max = 8;
  printf("%d %d\n", min, max);
  return 0;
}
