#include <bits/stdc++.h>
int main(void) {
  int n, i, j, k, a, flg[8], cnt = 0, ans = 0;
  scanf("%d", &n);
  for (i = 0; i < 8; ++i) flg[i] = 0;
  for (i = 0; i < n; ++i) {
    scanf("%d", &a);
    if (a < 3200)
      flg[a / 400] = 1;
    else
      cnt++;
  }
  for (i = 0; i < 8; ++i) ans += flg[i];
  printf("%d %d", ans, ans + cnt);
  return 0;
}
