#include <bits/stdc++.h>
int main(void) {
  int n, a[110], col[8] = {}, x = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    if (a[i] < 400)
      col[0]++;
    else if (a[i] < 800)
      col[1]++;
    else if (a[i] < 1200)
      col[2]++;
    else if (a[i] < 1600)
      col[3]++;
    else if (a[i] < 2000)
      col[4]++;
    else if (a[i] < 2400)
      col[5]++;
    else if (a[i] < 2800)
      col[6]++;
    else if (a[i] < 3200)
      col[7]++;
    else
      x++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (col[i] != 0) ans++;
  }
  int min = ans;
  if (min == 0) min = 1;
  ans += x;
  if (ans > 8) ans = 8;
  printf("%d %d\n", min, ans);
  return 0;
}
