#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  std::cin >> n;
  int MAX_CODER_NUM = 8;
  vector<int> a(n);
  vector<int> coder(MAX_CODER_NUM, 0);
  for (int idx = 0; idx < n; idx++) {
    std::cin >> a[idx];
    if (a[idx] <= 399)
      coder[0]++;
    else if (a[idx] <= 799)
      coder[1]++;
    else if (a[idx] <= 1199)
      coder[2]++;
    else if (a[idx] <= 1599)
      coder[3]++;
    else if (a[idx] <= 1999)
      coder[4]++;
    else if (a[idx] <= 2399)
      coder[5]++;
    else if (a[idx] <= 2799)
      coder[6]++;
    else
      coder[7]++;
  }
  int kind_num = 0;
  for (int idx = 0; idx < MAX_CODER_NUM; idx++) {
    if (coder[idx] != 0) kind_num++;
  }
  if (coder[7] != 0) {
    std::cout << kind_num << ' ';
    std::cout << min(kind_num + coder[7] - 1, 8) << '\n';
  } else {
    std::cout << kind_num << ' ' << kind_num << '\n';
  }
  return 0;
}
