#include <bits/stdc++.h>
int main() {
  const std::vector<int> r{400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  std::vector<bool> c(r.size(), false);
  int k = 0;
  int o = 0;
  int n;
  std::cin >> n;
  for (int i = 0; i < n; i++) {
    int l;
    std::cin >> l;
    if (3200 <= l) {
      o++;
    } else {
      for (size_t j = 0; j < r.size(); j++) {
        if (l < r[j]) {
          if (!c[j]) {
            k++;
          }
          c[j] = true;
          break;
        }
      }
    }
  }
  int m = (k == 0) ? 1 : k;
  int M = std::min(k + o, 8);
  std::cout << m << " " << M << std::endl;
  return 0;
}
