#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);
  }
  int sakaime = 399;
  bool iro[8];
  for (int i = 0; i < (int)(8); i++) {
    iro[i] = false;
  }
  int count = 0;
  for (int i = 0; i < (int)(N); i++) {
    if (a.at(i) < 400) iro[0] = true;
    if (a.at(i) >= 400 && a.at(i) < 800) iro[1] = true;
    if (a.at(i) >= 800 && a.at(i) < 1200) iro[2] = true;
    if (a.at(i) >= 1200 && a.at(i) < 1600) iro[3] = true;
    if (a.at(i) >= 1600 && a.at(i) < 2000) iro[4] = true;
    if (a.at(i) >= 2000 && a.at(i) < 2400) iro[5] = true;
    if (a.at(i) >= 2400 && a.at(i) < 2800) iro[6] = true;
    if (a.at(i) >= 2800 && a.at(i) < 3200) iro[7] = true;
    if (a.at(i) >= 3200) count++;
  }
  int irokazu = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (iro[i] == true) irokazu++;
  }
  cout << irokazu << " " << irokazu + count << endl;
  return 0;
}
