#include <bits/stdc++.h>
using namespace std;
int hash(int score) {
  if (score <= 399)
    return 0;
  else if (score <= 799)
    return 1;
  else if (score <= 1199)
    return 2;
  else if (score <= 1599)
    return 3;
  else if (score <= 1999)
    return 4;
  else if (score <= 2399)
    return 5;
  else if (score <= 2799)
    return 6;
  else if (score <= 3199)
    return 7;
  else
    return 8;
}
int main() {
  int N;
  scanf("%d", &N);
  int min = 0, max = 0;
  int color[9] = {0};
  for (int i = 0, a, p; i < N; i++) {
    scanf("%d", &a);
    p = hash(a);
    if (++color[p] == 1 && p < 8) {
      min++;
      max++;
    }
    if (p == 8) max++;
  }
  printf("%d %d", min, max);
}
