#include <bits/stdc++.h>
using namespace std;
int n, o;
bool c[8];
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    int r = a / 400;
    if (r < 8) {
      c[r] = true;
    } else
      o++;
  }
  int ct = 0;
  for (int i = 0; i < 8; i++)
    if (c[i]) ct++;
  printf("%d ", max(ct, o ? 1 : 0));
  printf("%d\n", min(ct + o, 8));
  return 0;
}
