#include <bits/stdc++.h>
using namespace std;
long long N, a, mc;
set<long long> c;
int main() {
  cin >> N;
  for (int(i) = 0; (i) < (N); (i)++) {
    cin >> a;
    if (3200 <= a)
      mc++;
    else
      c.insert((long long)(a / 400));
  }
  cout << c.size() << " " << min(8ll, (long long)c.size() + mc) << '\n';
  return 0;
}
