#include <bits/stdc++.h>
using namespace std;
int N;
int rate[9];
int main() {
  cin >> N;
  memset(rate, 0, sizeof(rate));
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    if (a >= 1 && a <= 399) {
      rate[0]++;
    } else if (a >= 400 && a <= 799) {
      rate[1]++;
    } else if (a >= 800 && a <= 1199) {
      rate[2]++;
    } else if (a >= 1200 && a <= 1599) {
      rate[3]++;
    } else if (a >= 1600 && a <= 1999) {
      rate[4]++;
    } else if (a >= 2000 && a <= 2399) {
      rate[5]++;
    } else if (a >= 2400 && a <= 2799) {
      rate[6]++;
    } else if (a >= 2800 && a <= 3199) {
      rate[7]++;
    } else {
      rate[8]++;
    }
  }
  int exist_rate = 0;
  for (int i = 0; i < 8; ++i) {
    if (rate[i] > 0) {
      exist_rate++;
    }
  }
  printf("%d %d\n", exist_rate, exist_rate + rate[8]);
  return 0;
}
