#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N, a[100], hai = 0, cha = 0, mido = 0, mizu = 0, ao = 0, ki = 0, dai = 0,
                 aka = 0, nazo = 0, ans = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] <= 399) {
      hai++;
      if (hai == 1) ans++;
    } else if (a[i] <= 799) {
      cha++;
      if (cha == 1) ans++;
    } else if (a[i] <= 1199) {
      mido++;
      if (mido == 1) ans++;
    } else if (a[i] <= 1599) {
      mizu++;
      if (mizu == 1) ans++;
    } else if (a[i] <= 1999) {
      ao++;
      if (ao == 1) ans++;
    } else if (a[i] <= 2399) {
      ki++;
      if (ki == 1) ans++;
    } else if (a[i] <= 2799) {
      dai++;
      if (dai == 1) ans++;
    } else if (a[i] <= 3199) {
      aka++;
      if (aka == 1) ans++;
    } else {
      nazo++;
    }
  }
  if (ans < 8) {
    ans = ans + nazo;
    if (ans >= 8) ans = 8;
  }
  cout << ans - nazo << " " << ans << endl;
}
