#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  int a[110];
  int i, j;
  cin >> N;
  for (i = 0; i < N; i++) {
    cin >> a[i];
  }
  int color[10] = {0};
  int count = 0;
  for (i = 0; i < N; i++) {
    for (j = 0; j < 8; j++) {
      if (400 * j <= a[i] && a[i] < 400 * (j + 1)) {
        color[j] = 1;
      }
    }
    if (a[i] >= 3200) {
      count++;
    }
  }
  int min_ans = 0;
  for (i = 0; i < 8; i++) {
    min_ans += color[i];
  }
  cout << min_ans << " " << min_ans + count << endl;
  return 0;
}
