#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<bool> b(8);
  auto s = 0;
  for (auto i = 0; i < N; ++i) {
    int a;
    cin >> a;
    a /= 400;
    if (a < 8)
      b[a] = true;
    else
      ++s;
  }
  auto n = count(begin(b), end(b), true);
  cout << max<int>(1, n) << " " << min<int>(n + s, 8) << endl;
}
