#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
const int INF = 0x3f3f3f3f;
const double PI = 3.1415926535;
int a[102], b[102], c[10];
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, cnt = 0, cnt2 = 0;
  cin >> n;
  for (int(i) = 0; (i) < (int)(n); ++(i)) cin >> a[i];
  for (int(i) = 0; (i) < (int)(n); ++(i)) {
    if (a[i] >= 1 && a[i] <= 399) {
      c[1]++;
    }
    if (a[i] >= 400 && a[i] <= 799) {
      c[2]++;
    }
    if (a[i] >= 800 && a[i] < 1199) {
      c[3]++;
    }
    if (a[i] >= 1200 && a[i] <= 1599) {
      c[4]++;
    }
    if (a[i] >= 1600 && a[i] <= 1999) {
      c[5]++;
    }
    if (a[i] >= 2000 && a[i] <= 2399) {
      c[6]++;
    }
    if (a[i] >= 2400 && a[i] <= 2799) {
      c[7]++;
    }
    if (a[i] >= 2800 && a[i] <= 3199) {
      c[8]++;
    }
    if (a[i] >= 3200) {
      cnt++;
    }
  }
  sort(c + 1, c + 9);
  for (int(i) = (int)(1); (i) <= (int)(8); ++(i)) {
    if (c[i] != 0) {
      cnt2++;
    }
  }
  cout << cnt2 << ' ' << cnt2 + cnt << endl;
  return 0;
}
