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