#include <bits/stdc++.h>
long long int cnt[8];
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};
  long long int red = 0;
  for (long long int i = 0; i < N; ++i) {
    bool flag = false;
    for (long long int j = 0; j < 8; ++j) {
      if (a[i] <= scores[j]) {
        ++cnt[j];
        flag = true;
        break;
      }
    }
    if (!flag) ++red;
  }
  long long int ans = 0;
  for (long long int i = 0; i < 8; ++i) ans += (cnt[i] > 0 ? 1 : 0);
  if (ans > 0)
    std::cout << ans << " " << ans + red << std::endl;
  else
    std::cout << 1 << red << std::endl;
}
