#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, rate[8] = {}, rainbow = 0, r;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> r;
    if (r <= 399) {
      rate[0]++;
    } else if (r <= 799) {
      rate[1]++;
    } else if (r <= 1199) {
      rate[2]++;
    } else if (r <= 1599) {
      rate[3]++;
    } else if (r <= 1999) {
      rate[4]++;
    } else if (r <= 2399) {
      rate[5]++;
    } else if (r <= 2799) {
      rate[6]++;
    } else if (r <= 3199) {
      rate[7]++;
    } else {
      rainbow++;
    }
  }
  r = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) {
      r++;
    }
  }
  cout << r << " " << r + rainbow << endl;
}
