#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int a[110];
  bool state[10];
  int ans_min = 0, ans_max = 0;
  int count_pro = 0;
  cin >> N;
  for (int i = 1; i <= N; i++) {
    cin >> a[i];
  }
  for (int i = 1; i <= 8; i++) {
    state[i] = false;
  }
  for (int i = 1; i <= N; i++) {
    if (a[i] <= 399)
      state[1] = true;
    else if (a[i] <= 799)
      state[2] = true;
    else if (a[i] <= 1199)
      state[3] = true;
    else if (a[i] <= 1599)
      state[4] = true;
    else if (a[i] <= 1999)
      state[5] = true;
    else if (a[i] <= 2399)
      state[6] = true;
    else if (a[i] <= 2799)
      state[7] = true;
    else if (a[i] <= 3199)
      state[8] = true;
    else
      count_pro++;
  }
  if (count_pro == 0) {
    for (int i = 1; i <= 8; i++) {
      if (state[i]) ans_min++;
    }
    ans_max = ans_min;
  } else if (1 <= count_pro && count_pro < N) {
    for (int i = 1; i <= 8; i++) {
      if (state[i]) ans_min++;
    }
    ans_max = ans_min + count_pro;
    if (ans_max > 8) ans_max = 8;
  } else {
    ans_min = 1;
    ans_max = count_pro;
    if (ans_max > 8) ans_max = 8;
  }
  cout << ans_min << " " << ans_max << endl;
  return 0;
}
