#include <bits/stdc++.h>
int main(void) {
  int N, ans = 0;
  std::cin >> N;
  std::vector<int> A(9, 0);
  for (int i = 0; i < N; ++i) {
    int a;
    std::cin >> a;
    a /= 400;
    if (a > 7) a = 8;
    ++A[a];
  }
  for (int i = 0; i < 9; ++i) {
    if (i == 8) {
      ans += A[8];
    } else {
      if (A[i] > 0) ++ans;
    }
  }
  std::cout << ans - A[8] << " " << ans << std::endl;
  return 0;
}
