#include <bits/stdc++.h>
int a[10];
int main() {
  int n, rat, cnt = 0, mn, mx;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &rat);
    if (rat >= 1 && rat <= 399)
      a[1]++;
    else if (rat >= 400 && rat <= 799)
      a[2]++;
    else if (rat >= 800 && rat <= 1199)
      a[3]++;
    else if (rat >= 1200 && rat <= 1599)
      a[4]++;
    else if (rat >= 1600 && rat <= 1999)
      a[5]++;
    else if (rat >= 2000 && rat <= 2399)
      a[6]++;
    else if (rat >= 2400 && rat <= 2799)
      a[7]++;
    else if (rat >= 2800 && rat <= 3199)
      a[8]++;
    else
      a[9]++;
  }
  for (int i = 1; i <= 8; i++)
    if (a[i]) cnt++;
  mn = cnt;
  mx = cnt + a[9];
  if (mx > 8) mx = 8;
  if (mn < 1 && a[9]) mn = 1;
  printf("%d %d\n", mn, mx);
  return 0;
}
