#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int C[9] = {0};
  for (int i = 0; i < N; i++) {
    int a, count = 0;
    cin >> a;
    if (a > 3199) {
      C[8]++;
    } else {
      for (; a >= 399; a -= 400) count++;
      C[count]++;
    }
  }
  int count = 0;
  for (int i = 0; i < 8; i++)
    if (C[i] == 0) count++;
  int ans_min = 8 - count;
  int ans_max = ans_min;
  ans_max += C[8];
  if (ans_max > 8) ans_max = 8;
  cout << ans_min << " " << ans_max << endl;
}
