#include <bits/stdc++.h>
using namespace std;
const int VX[] = {0, 1, 0, -1};
const int VY[] = {1, 0, -1, 0};
const long MOD = 1000000007;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N, rates[9] = {0}, a;
  cin >> N;
  for (int i = (0); i < (N); i++) {
    cin >> a;
    if (a >= 3200)
      rates[8]++;
    else
      rates[a / 400]++;
  }
  int ret = 0, empty = 0;
  for (int i = (0); i < (8); i++) {
    if (rates[i] == 0)
      empty++;
    else
      ret++;
  }
  if (ret == 0) {
    ret++;
    empty--;
  }
  if (rates[8] > 0) {
    if (empty > rates[8]) {
      cout << ret << " " << ret + rates[8] << "\n";
    } else {
      cout << ret << " " << ret + empty << "\n";
    }
  } else {
    cout << ret << " " << ret << "\n";
  }
  return 0;
}
