#include <bits/stdc++.h>
using namespace std;
int cnt[100];
signed main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < (n); i++) {
    int a;
    scanf("%d", &a);
    a = min(a, 3200);
    cnt[a / 400]++;
  }
  int a = 0, b = 0;
  for (int i = 0; i < (8); i++) {
    if (cnt[i]) a++;
  }
  if (a) {
    printf("%d", a);
  } else if (b) {
    printf("%d", 1);
  } else
    printf("0");
  printf(" %d\n", a + cnt[8]);
}
