#include <bits/stdc++.h>
const int N = 1002;
int n, x, i, s[N], sum, p;
int min(int x, int y) { return x < y ? x : y; }
int main() {
  scanf("%d", &n);
  while (n--) {
    scanf("%d", &x);
    if (x >= 1 && x <= 399) s[1]++;
    if (x >= 400 && x <= 799) s[2]++;
    if (x >= 800 && x <= 1199) s[3]++;
    if (x >= 1200 && x <= 1599) s[4]++;
    if (x >= 1600 && x <= 1999) s[5]++;
    if (x >= 2000 && x <= 2399) s[6]++;
    if (x >= 2400 && x <= 2799) s[7]++;
    if (x >= 2800 && x <= 3199) s[8]++;
    if (x >= 3200) sum++;
  }
  for (i = 1; i <= 8; i++) p += s[i] > 0;
  if (sum == 0)
    printf("%d %d", p, p);
  else {
    if (p == 0)
      printf("%d %d", 1, min(sum, 8));
    else
      printf("%d %d", p, min(p + sum, 8));
  }
}
