#include <bits/stdc++.h>
using namespace std;
int arr[] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199, 1000000000};
int a[10];
int main() {
  int i, j, k;
  int n;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &j);
    for (k = 0; k <= 9; k++) {
      if (j < arr[k]) {
        a[k]++;
        break;
      }
    }
  }
  int ans = 0;
  for (i = 0; i <= 7; i++) {
    if (a[i]) ans++;
  }
  printf("%d %d\n", ans == 0 ? 1 : ans, ans + a[8]);
  return 0;
}
