#include <bits/stdc++.h>
int min(int a, int b) { return (a > b ? b : a); }
int main() {
  int n, t;
  scanf("%d", &n);
  int arr[9] = {0};
  for (auto i = 0; i < n; i++) {
    scanf("%d", &t);
    arr[t / 400]++;
  }
  t = 0;
  for (auto i = 0; i < 8; i++)
    if (arr[i]) t++;
  printf("%d %d\n", (t ? t : 1), (t ? min(t + arr[8], 8) : min(arr[8], 8)));
  return 0;
}
