#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int a[110];
  bool color[20];
  int count_pro = 0;
  int ans_m, ans_M;
  cin >> N;
  for (int i = 1; i <= N; i++) cin >> a[i];
  for (int i = 1; i <= 8; i++) color[i] = false;
  for (int i = 1; i <= N; i++) {
    if (a[i] <= 399)
      color[(a[i] / 400) + 1] = true;
    else
      count_pro++;
  }
  if (count_pro == 0) {
    for (int i = 1; i <= 8; i++) {
      if (color[i]) ans_m++;
    }
    ans_M = ans_m;
  } else {
    for (int i = 1; i <= 8; i++) {
      if (color[i]) ans_m++;
    }
    ans_M = ans_m + count_pro;
    if (ans_m == 0) ans_m = 1;
  }
  cout << ans_m << " " << ans_M << endl;
  return 0;
}
