#include <bits/stdc++.h>
int get_color(int);
int main() {
  int color[9]{}, n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    color[get_color(a)]++;
  }
  int count{};
  for (int i = 0; i < 8; i++) count += (color[i] > 0);
  printf("%d %d\n", count, count + color[8]);
  return 0;
}
int get_color(int c) {
  int table[8]{400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  for (int i = 0; i < 8; i++) {
    if (c < table[i]) return i;
  }
  return 8;
}
