#include <bits/stdc++.h>
int color[8];
int main(void) {
  int N;
  scanf("%d", &N);
  int i, temp;
  for (i = 0; i < N; i++) {
    scanf("%d", &temp);
    if (temp < 400)
      color[0] = 1;
    else if (temp < 800)
      color[1] = 1;
    else if (temp < 1200)
      color[2] = 1;
    else if (temp < 1600)
      color[3] = 1;
    else if (temp < 2000)
      color[4] = 1;
    else if (temp < 2400)
      color[5] = 1;
    else if (temp < 2800)
      color[6] = 1;
    else if (temp < 3200)
      color[7] = 1;
    else
      color[8]++;
  }
  int ans = 0;
  for (i = 0; i < 8; i++) {
    if (color[i] == 1) ans++;
  }
  int minans = ans;
  int maxans = ans += color[8];
  printf("%d %d", minans, maxans);
}
