#include <bits/stdc++.h>
using namespace std;
const int dx[] = {1, -1, 0, 0};
const int dy[] = {0, 0, -1, 1};
const double PI = 3.14159265358979323846;
template <typename T>
void printA(vector<T> &printArray, char between = ' ') {
  int paSize = printArray.size();
  for (int i = 0; i < paSize; i++) {
    cerr << printArray[i] << between;
  }
  if (between != '\n') {
    cerr << endl;
  }
}
long long N;
long long cnt = 0;
bool flg[10];
int main() {
  fill(flg, flg + 10, false);
  cin >> N;
  for (int(i) = (0); (i) < (N); ++(i)) {
    long long a;
    cin >> a;
    bool ok = false;
    for (int i = 1; i <= 8; i++) {
      if (a < 400 * i) {
        ok = true;
        flg[i - 1] = true;
        break;
      }
    }
    if (!ok) cnt++;
  }
  cout << count(flg, flg + 8, true) << " ";
  cout << count(flg, flg + 8, true) + cnt << endl;
  return 0;
}
