#include <bits/stdc++.h>
int main() {
  long long int N;
  std::cin >> N;
  std::vector<long long int> a(N);
  for (long long int i = 0; i < N; ++i) std::cin >> a[i];
  long long int scores[] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199};
  std::vector<bool> cnt(8, false);
  long long int red = 0;
  for (long long int i = 0; i < N; ++i) {
    if (a[i] < 3200) {
      for (long long int j = 0; j < 8; ++j) {
        if (a[i] <= scores[j]) {
          cnt[j] = true;
          break;
        }
      }
    } else
      ++red;
  }
  long long int ans = 0;
  for (long long int i = 0; i < 8; ++i) ans += (cnt[i] ? 1 : 0);
  if (ans > 0)
    std::cout << ans << " " << ans + red << std::endl;
  else
    std::cout << 1 << "" << red << std::endl;
}
