#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int A[N], B[13] = {};
  for (int i = 0; i < N; i++) {
    cin >> A[i];
    B[(A[i] / 400)]++;
  }
  int ans = 0;
  for (int i = 0; i <= 7; i++) {
    if (B[i]) ans++;
  }
  cout << ans << ' ';
  for (int i = 8; i < 13; i++) {
    ans += B[i];
  }
  if (ans > 8)
    cout << 8 << endl;
  else
    cout << ans << endl;
  return 0;
}
