#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int i, n, a, flg[8], cnt, x, y;
  for (i = 1; i <= 8; i++) {
    flg[i] = 0;
  }
  cnt = 0;
  x = 0;
  y = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a;
    if (a < 400) flg[1] = 1;
    if (a >= 400 && a < 800) flg[2] = 1;
    if (a >= 800 && a < 1200) flg[3] = 1;
    if (a >= 1200 && a < 1600) flg[4] = 1;
    if (a >= 1600 && a < 2000) flg[5] = 1;
    if (a >= 2000 && a < 2400) flg[6] = 1;
    if (a >= 2400 && a < 2800) flg[7] = 1;
    if (a >= 2800 && a < 3200) flg[8] = 1;
    if (a >= 3200) {
      cnt = cnt + 1;
    }
  }
  for (i = 1; i <= 8; i++) {
    x = x + flg[i];
    y = x + cnt;
  }
  if (cnt == n) {
    x = 1;
    y = n;
  }
  cout << x << ' ' << y << endl;
  return 0;
}
