#include <bits/stdc++.h>
using namespace std;
const int INF = 2147483647;
const long long int INFLL = 9223372036854775807;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int kakunin[9] = {0};
  int n, a;
  int cmin = 0, cmax = 0;
  cin >> n;
  for (size_t i = 0; i < n; i++) {
    cin >> a;
    for (size_t j = 1; j <= 8; j++) {
      if (a >= 3200) {
        cmax++;
        break;
      }
      if (a < 400 * j) {
        if (!kakunin[j - 1]) {
          cmin++;
          cmax++;
          kakunin[j - 1] = 1;
        }
        break;
      }
    }
  }
  if (cmax > 8) {
    cmax = 8;
  }
  if (cmax <= 0) {
    cmax = 1;
  }
  if (cmin >= 8) {
    cmin = 8;
  }
  if (cmin <= 0) {
    cmin = 1;
  }
  if (n == 0) {
    cmin = 0;
    cmax = 0;
  }
  cout << cmin << ' ' << cmax << endl;
  return 0;
}
