#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> a(N);
  int mapcolor[10] = {0};
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    int kind;
    if (a[i] <= 399) {
      kind = 1;
    } else if (a[i] <= 799) {
      kind = 2;
    } else if (a[i] <= 1199) {
      kind = 3;
    } else if (a[i] <= 1599) {
      kind = 4;
    } else if (a[i] <= 1999) {
      kind = 5;
    } else if (a[i] <= 2399) {
      kind = 6;
    } else if (a[i] <= 2799) {
      kind = 7;
    } else if (a[i] <= 3199) {
      kind = 8;
    } else {
      kind = 9;
    }
    mapcolor[kind]++;
  }
  int ansmin = 0;
  int zeros = 0;
  for (int i = 1; i <= 8; i++) {
    if (mapcolor[i] > 0) {
      ansmin++;
    } else {
      zeros++;
    }
  }
  int ansmax = min(zeros, mapcolor[9]) + ansmin;
  cout << ansmin << " " << ansmax;
  return 0;
}
