#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100], f[8] = {}, sum = 0, cnt = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    if (a[i] < 3200)
      f[a[i] / 400] = 1;
    else
      cnt++;
  }
  for (int i = 0; i < 8; i++) sum += f[i];
  printf("%d %d\n", max(1, sum), min(8, sum + cnt));
}
