#include <bits/stdc++.h>
using namespace std;
int a[4800];
int rate[9];
int main(void) {
  int N;
  int min = 0;
  int max = 0;
  cin >> N;
  for (int i = 0; i < 9; i++) {
    rate[i] = 0;
  }
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] / 400 < 8) {
      rate[a[i] / 400]++;
    } else {
      rate[8]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) {
      min++;
    }
  }
  if (min == 0) {
    min = 1;
  }
  max = min + rate[8];
  cout << min << ' ' << max << endl;
  return 0;
}
