#include <bits/stdc++.h>
using namespace std;
int sum_digit(int n) {
  if (n == 0)
    return 0;
  else
    return n % 10 + sum_digit(n / 10);
}
int absolute(int a) {
  if (a < 0)
    return -a;
  else
    return a;
}
int main() {
  int N;
  cin >> N;
  vector<int> rate_count(9, 0);
  for (int i = 0; i < N; i++) {
    int x;
    cin >> x;
    int rate = x / 400;
    if (rate > 8) rate = 8;
    rate_count.at(rate)++;
  }
  int min = 0, max = 0;
  for (int i = 0; i < 8; i++) {
    if (rate_count.at(i) != 0) min++;
  }
  int upper3200 = rate_count.at(8);
  max = min;
  while (upper3200 > 0 && max < 8) {
    max++;
    upper3200--;
  }
  cout << min << ' ' << max << endl;
}
