#include <bits/stdc++.h>
int N;
int a;
std::vector<int> cnt(8, 0);
int hr = 0;
int main(void) {
  std::cin >> N;
  for (int i = 0; i < N; ++i) {
    std::cin >> a;
    if (a >= 3200) {
      ++hr;
    } else {
      ++cnt[a / 400];
    }
  }
  int c = 0;
  for (int i = 0; i < 8; ++i) {
    c += (cnt[i] > 0 ? 1 : 0);
  }
  int min = std::max(1, c + std::max(0, hr - c));
  int max = std::min(8, c + hr);
  std::cout << min << " " << max << std::endl;
}
