#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    a[i] /= 400;
  }
  int ans = 0;
  int anse = 0;
  sort(a.begin(), a.end());
  for (int i = 0; i < N - 1; i++) {
    if (a[i] < 8) {
      if (a[i] != a[i + 1]) ans++;
    } else {
      anse++;
    }
  }
  if (ans == 0 && anse == 0)
    cout << 1 << " " << 1 << endl;
  else if (ans == 0 && anse != 0) {
    cout << 1 << " " << anse + 1 << endl;
  } else {
    cout << ans + 1 << " " << ans + anse + 1 << endl;
  }
}
