#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a.at(i);
  }
  vector<bool> check(8);
  for (int i = 0; i < 8; i++) {
    check.at(i) = false;
  }
  int count = 0;
  for (int i = 0; i < N; i++) {
    if (a.at(i) < 400) {
      check.at(0) = true;
    } else if (a.at(i) < 800) {
      check.at(1) = true;
    } else if (a.at(i) < 1200) {
      check.at(2) = true;
    } else if (a.at(i) < 1600) {
      check.at(3) = true;
    } else if (a.at(i) < 2000) {
      check.at(4) = true;
    } else if (a.at(i) < 2400) {
      check.at(5) = true;
    } else if (a.at(i) < 2800) {
      check.at(6) = true;
    } else if (a.at(i) < 3200) {
      check.at(7) = true;
    } else {
      count++;
    }
  }
  int ans1 = 0, ans2;
  for (int i = 0; i < 8; i++) {
    if (check.at(i)) {
      ans1++;
    }
  }
  ans2 = ans1 + count;
  if (ans1 == 0 && N != 0) {
    ans1 = 1;
  }
  if (ans2 > 8) {
    ans2 = 8;
  }
  cout << ans1 << ' ' << ans2;
}
