#include <bits/stdc++.h>
const int MAX_N = 100;
int main() {
  int N, cnt[8] = {}, free = 0;
  std::cin >> N;
  for (int i = 0; i < N; ++i) {
    int a;
    std::cin >> a;
    if (a <= 399)
      ++cnt[0];
    else if (a <= 799)
      ++cnt[1];
    else if (a <= 1199)
      ++cnt[2];
    else if (a <= 1599)
      ++cnt[3];
    else if (a <= 1999)
      ++cnt[4];
    else if (a <= 2399)
      ++cnt[5];
    else if (a <= 2799)
      ++cnt[6];
    else if (a <= 3199)
      ++cnt[7];
    else
      ++free;
  }
  std::sort(cnt, cnt + 8);
  int zero = (int)(std::upper_bound(cnt, cnt + 8, 0) - cnt);
  int ans_min = 8 - zero;
  int ans_max = ans_min + std::min(zero, free);
  std::cout << ans_min << " " << ans_max << std::endl;
}
