#include <bits/stdc++.h>
using namespace std;
int AtCoder1(int a, vector<bool> &colors) {
  for (int i = 0; i < 8; i++) {
    if (a >= i * 400 && a < (i + 1) * 400) {
      colors[i] = true;
      return 0;
    }
  }
  return 1;
}
void AtCoder2(int a, vector<bool> &colors) {
  for (int i = 0; i < 8; i++) {
    if (a >= i * 400 && a < (i + 1) * 400) {
      colors[i] = true;
      return;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (colors[i]) {
      colors[i] = true;
      return;
    }
  }
}
int main() {
  vector<bool> colors1(8), colors2(8);
  int N, a, b = 0;
  for (cin >> N; N; N--) {
    cin >> a;
    b += AtCoder1(a, colors1);
    AtCoder2(a, colors2);
  }
  cout << count(colors2.begin(), colors2.end(), true) << ' '
       << b + count(colors1.begin(), colors1.end(), true);
}
