#include <bits/stdc++.h>
int main() {
  int n;
  std::cin >> n;
  int a, min = 0, max = 0;
  std::vector<bool> exist(8, false);
  for (int i = 0; i < n; ++i) {
    std::cin >> a;
    if (a >= 3200) {
      max++;
      continue;
    }
    if (!exist[a / 400]) {
      min++;
      max++;
      exist[a / 400] = true;
    }
    if (min == 8) break;
  }
  if (max > 8) max = 8;
  if (min == 0 & max != 0) min = 1;
  std::cout << min << " " << max << std::endl;
}
