#include <bits/stdc++.h>
int main() {
  int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0;
  int ans = 0;
  int n, rate;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &rate);
    if (rate < 400)
      a++;
    else if (rate < 800)
      b++;
    else if (rate < 1200)
      c++;
    else if (rate < 1600)
      d++;
    else if (rate < 2000)
      e++;
    else if (rate < 2400)
      f++;
    else if (rate < 2800)
      g++;
    else if (rate < 3200)
      h++;
    else
      i++;
  }
  if (a) ans++;
  if (b) ans++;
  if (c) ans++;
  if (d) ans++;
  if (e) ans++;
  if (f) ans++;
  if (g) ans++;
  printf("%d %d", ans ? ans : 1, ans + i);
}
