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