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