#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int a[105];
  for (int i = 0; i < (int)(n); i++) scanf("%d", a + i);
  int color[10] = {0};
  for (int i = 0; i < (int)(n); i++) color[(a[i] / 400 < 8 ? a[i] / 400 : 8)]++;
  int ans = 0;
  for (int i = 0; i < (int)(8); i++)
    if (color[i]) ans++;
  if (color[8] == n) ans = 1;
  printf("%d ", ans);
  if (color[8] == n) ans--;
  ans = (8 < ans + color[8] ? 8 : ans + color[8]);
  printf("%d\n", ans);
}
