#include <bits/stdc++.h>
using namespace std;
int chk(int a) {
  if (a < 400) return 0;
  if (a < 800) return 1;
  if (a < 1200) return 2;
  if (a < 1600) return 3;
  if (a < 2000) return 4;
  if (a < 2400) return 5;
  if (a < 2800) return 6;
  if (a < 3200) return 7;
  return 8;
}
int main() {
  vector<int> v(9, 0);
  int n;
  cin >> n;
  while (n--) {
    int a;
    cin >> a;
    v[chk(a)]++;
  }
  int min = 0, max = 0;
  for (int i = 0; i < 8; ++i)
    if (v[i]) min++;
  for (int i = 0; i < 8; ++i) {
    if (v[i]) continue;
    if (v[8]) {
      v[8]--;
      v[i]++;
    }
  }
  for (int i = 0; i < 8; ++i)
    if (v[i]) max++;
  cout << min << ' ' << max << endl;
}
