#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  int count[9] = {};
  int all = 0;
  int a = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    for (int j = 1; j <= 8; j++) {
      if (a < 400 * j && a >= 400 * (j - 1)) count[j - 1] = 1;
    }
    if (a >= 3200) all++;
  }
  int ans_max = 0;
  int ans_min = 0;
  for (int i = 0; i <= 7; i++) {
    if (count[i] > 0) ans_min++;
  }
  if (ans_min + all > 8)
    ans_max = 8;
  else
    ans_max = ans_min + all;
  if (n == all) ans_min = 1;
  cout << ans_min << " " << ans_max << endl;
  return 0;
}
