#include <bits/stdc++.h>
using namespace std;
int main() {
  int rates[9] = {0}, N, a, ans;
  cin >> N;
  for (int i = 0; i < N; i++) cin >> a, rates[a / 400]++;
  ans = count_if(&rates[0], &rates[8], [](int x) { return 0 < x; });
  cout << ans << " " << ans + rates[8] << endl;
  return 0;
}
