#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  while (scanf("%d", &n) == 1) {
    vector<int> a(n);
    vector<int> c(3200 / 400 + 1);
    for (int i = 0; i < n; i++) {
      scanf("%d", &a[i]);
      c[min(a[i] / 400, 8)]++;
    }
    int col_min = 0;
    for (int i = 0; i <= 7; i++) {
      if (c[i]) col_min++;
    }
    int col_max = col_min + c[8];
    printf("%d %d\n", col_min, col_max);
  }
  return 0;
}
