#include <bits/stdc++.h>
int dist[9];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    int a;
    scanf("%d", &a);
    if (a >= 3200)
      dist[8]++;
    else
      dist[a / 400]++;
  }
  int c = 0;
  for (int i = 0; i < 8; ++i) {
    if (dist[i] > 0) ++c;
  }
  printf("%d %d\n", c, c + dist[8]);
  return 0;
}
