#include <bits/stdc++.h>
using namespace std;
signed main() {
  vector<long long> color(8, 0), tmp;
  long long n;
  long long ultra = 0;
  long long result = 0, result2 = 0;
  cin >> n;
  tmp.resize(n);
  for (long long i = 0; i < (n); i++) {
    cin >> tmp[i];
  }
  for (long long i = 0; i < (n); i++) {
    if (tmp[i] < 3200)
      color[tmp[i] / 400] = 1;
    else
      ultra++;
  }
  for (long long i = 0; i < (8); i++) {
    result += color[i];
  }
  result2 = result + ultra;
  if (result2 > 8) result2 = 8;
  cout << result << " " << result2 << endl;
}
