#include <bits/stdc++.h>
using namespace std;
int main() {
  int_fast64_t N;
  scanf("%lld", &N);
  set<int_fast64_t> s;
  int_fast64_t ans(0);
  for (int_fast64_t i = 0, a; i < N; ++i) {
    scanf("%lld", &a);
    if (a > 3199) {
      ++ans;
    } else {
      s.insert(a / 400);
    }
  }
  cout << s.size() << " " << ans + s.size() << endl;
  return 0;
}
