#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[1000];
  int N;
  while (scanf("%d", &N) == 1) {
    for (int i = 0; i < N; i++) scanf("%d", &a[i]);
    sort(a, a + N);
    int b[9];
    int i;
    memset(b, 0, sizeof(b));
    for (i = 0; i < N && a[i] <= 3199; i++) {
      if (a[i] >= 2800)
        b[8]++;
      else if (a[i] >= 2400)
        b[7]++;
      else if (a[i] >= 2000)
        b[6]++;
      else if (a[i] >= 1600)
        b[5]++;
      else if (a[i] >= 1200)
        b[4]++;
      else if (a[i] >= 800)
        b[3]++;
      else if (a[i] >= 400)
        b[2]++;
      else
        b[1]++;
    }
    int sum = 0;
    for (int j = 1; j <= 8; j++) {
      if (b[j] != 0) {
        sum++;
      }
    }
    printf("%d ", sum);
    if (i != N) {
      printf("%d\n", N - i + sum);
    } else
      printf("%d\n", sum);
  }
}
