#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, a[10007], n, m, t = 1, s = 0, bar[1007], cnt8 = 0, cnt = 0, mn, mx;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (i = 0; i < n; i++) {
    if (a[i <= 399]) {
      bar[0] = 1;
    } else if (a[i] <= 799) {
      bar[1] = 1;
    } else if (a[i] <= 1199) {
      bar[2] = 1;
    } else if (a[i] <= 1599) {
      bar[3] = 1;
    } else if (a[i] <= 1999) {
      bar[4] = 1;
    } else if (a[i] <= 2399) {
      bar[5] = 1;
    } else if (a[i] <= 2799) {
      bar[6] = 1;
    } else if (a[i] <= 3199) {
      bar[7] = 1;
    } else if (a[i] >= 3200) {
      bar[8] = 1;
      cnt8++;
    }
  }
  for (i = 0; i < 8; i++) {
    if (bar[i] == 1) cnt++;
  }
  mn = cnt;
  if (bar[8] == 1) {
    mx = cnt + cnt8;
  } else {
    mx = cnt;
  }
  if (mn == 0) mn = 1;
  if (n <= 1) {
    mn = 1;
    mx = 1;
  }
  cout << mn << " " << mx;
}
