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