#include <bits/stdc++.h>
int main() {
  long long n;
  std::cin >> n;
  std::map<long long, long long> m;
  m[8] = 0;
  for (size_t i = 0; i < n; i++) {
    long long rate;
    std::cin >> rate;
    m[rate / 400]++;
  }
  long long min = m.size();
  if (m[8] == 0) {
    min--;
  }
  if (m.size() > 1) {
    if (m[8] > 0) {
      min--;
    }
  }
  long long max = m.size();
  if (m[8] == 0) {
    max--;
  }
  if (m[8] > 0) {
    max = max - 1 + m[8];
  }
  std::cout << min << " " << max << std::endl;
  return 0;
}
