#include <bits/stdc++.h>
using namespace std;
int main() {
  map<int, int> mapa;
  int l = 1, r = 399;
  int n, sz = 0, rat;
  cin >> n;
  for (int i = 0; i < n; i++) {
    l = 1, r = 399;
    bool f = 0;
    cin >> rat;
    for (int j = 1; j <= 8; j++) {
      if (rat >= l and rat <= r) {
        f = 1;
        mapa[j] = 1;
        break;
      }
      l = 400 * j;
      r = l + 399;
    }
    if (!f) sz++;
  }
  cout << max(1, (int)mapa.size()) << " " << min(8, (int)mapa.size() + sz);
}
