#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1LL << 60;
int main() {
  int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0;
  int n;
  cin >> n;
  for (int j = 0; j < n; j++) {
    int temp;
    cin >> temp;
    if (temp / 400 == 0) a++;
    if (temp / 400 == 1) b++;
    if (temp / 400 == 2) c++;
    if (temp / 400 == 3) d++;
    if (temp / 400 == 4) e++;
    if (temp / 400 == 5) f++;
    if (temp / 400 == 6) g++;
    if (temp / 400 == 7) h++;
    if (temp / 400 > 7) i++;
  }
  int cntmin = 0;
  if (a > 0) cntmin++;
  if (b > 0) cntmin++;
  if (c > 0) cntmin++;
  if (d > 0) cntmin++;
  if (e > 0) cntmin++;
  if (f > 0) cntmin++;
  if (g > 0) cntmin++;
  if (h > 0) cntmin++;
  int cntmax = cntmin;
  if (i != 0 && cntmin < 8) {
    while (true) {
      i--;
      cntmax++;
      if (i == 0 || cntmax == 8) break;
    }
  }
  cout << cntmin << ' ' << cntmax << endl;
}
