#include <bits/stdc++.h>
int main() {
  int N;
  std::cin >> N;
  int other = 0;
  std::vector<int> rate_cnt(8);
  for (int i = 0; i < N; i++) {
    int a;
    std::cin >> a;
    if (a < 3200)
      rate_cnt[a / 400] += 1;
    else
      other += 1;
  }
  int kind_of_color = 0;
  for (int i = 0; i < 8; i++) {
    kind_of_color += (rate_cnt[i] > 0);
  }
  int min = std::max(kind_of_color, other);
  int max = kind_of_color + other;
  std::cout << min << " " << max << std::endl;
  return 0;
}
