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