#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<int> rate(9);
  for (int i = 0; i < N; i++) {
    if (a.at(i) < 400)
      rate.at(0)++;
    else if (a.at(i) < 800)
      rate.at(1)++;
    else if (a.at(i) < 1200)
      rate.at(2)++;
    else if (a.at(i) < 1600)
      rate.at(3)++;
    else if (a.at(i) < 2000)
      rate.at(4)++;
    else if (a.at(i) < 2400)
      rate.at(5)++;
    else if (a.at(i) < 2800)
      rate.at(6)++;
    else if (a.at(i) < 3200)
      rate.at(7)++;
    else
      rate.at(8)++;
  }
  int mi = 0;
  int ma = 0;
  for (int i = 0; i < 9; i++) {
    if (i != 8 && rate.at(i) != 0) {
      mi++;
      ma++;
    }
    if (i == 8 && rate.at(i) != 0) {
      mi = max(mi, 1);
      ma = min(ma + rate.at(8), 8);
    }
  }
  cout << mi << " " << ma << endl;
  return 0;
}
