#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, res = 0;
  vector<int> col(9, 0);
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    if (a < 3200)
      col[a / 400]++;
    else
      col[8]++;
  }
  for (int i = 0; i < 8; ++i) res += !!(col[i]);
  cout << res << " " << res + col[8] << "\n";
  return 0;
}
