#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using namespace std;
int main() {
  int n;
  int co[9] = {};
  std::cin >> n;
  for (int i = 0; i < (n); ++i) {
    int sc;
    std::cin >> sc;
    co[min(sc / 400, 8)]++;
  }
  int now = 0;
  for (int i = 0; i < (8); ++i)
    if (co[i] > 0) now++;
  std::cout << now << ' ';
  now = min(now + co[8], 8);
  std::cout << now << '\n';
  return 0;
}
