#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  const int m = 9;
  vector<int> c(m);
  for (int i = 0; i < n; i++) {
    int tmp_a;
    cin >> tmp_a;
    if (tmp_a < 3200)
      c[tmp_a / 400] = 1;
    else
      c[m - 2]++;
  }
  int ans = 0;
  for (int i = 0; i < m - 1; i++) ans += c[i];
  if (ans == 0) {
    cout << 1 << " " << c[m - 2] << endl;
  } else {
    cout << ans << " " << ans + c[m - 2] << endl;
  }
  return 0;
}
