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