#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a;
  array<int, 8> exsists{};
  int count = 0;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    if (a < 400) {
      exsists[0] = true;
    } else if (a < 800) {
      exsists[1] = true;
    } else if (a < 1200) {
      exsists[2] = true;
    } else if (a < 1600) {
      exsists[3] = true;
    } else if (a < 2000) {
      exsists[4] = true;
    } else if (a < 2400) {
      exsists[5] = true;
    } else if (a < 2800) {
      exsists[6] = true;
    } else if (a < 3200) {
      exsists[7] = true;
    } else {
      ++count;
    }
  }
  int kind = 0;
  for (auto& elem : exsists) {
    if (elem) ++kind;
  }
  cout << kind << " " << min(kind + count, 8);
}
