#include <bits/stdc++.h>
using namespace std;
constexpr int MaxN = 100;
int Color(int rate) { return rate / 400; }
int main() {
  int N;
  cin >> N;
  int check = 0;
  int num_rainbow = 0;
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    int k = Color(a);
    if (k > 7) {
      ++num_rainbow;
    } else {
      check |= (1 << k);
    }
  }
  int num_color = 0;
  for (; check > 0; check >>= 1) {
    if ((check & 1) != 0) {
      ++num_color;
    }
  }
  cout << num_color << " " << min(num_color + num_rainbow, 8) << endl;
  return 0;
}
