#include <bits/stdc++.h>
using namespace std;
int main() {
  const int M = 9;
  int N, a;
  int ans = 0;
  int colors[M];
  cin >> N;
  for (int i = 0; i < M; i++) colors[i] = 0;
  for (int i = 0; i < N; i++) {
    cin >> a;
    colors[a / 400]++;
  }
  for (int i = 0; i < M - 1; i++) {
    if (colors[i]) ans++;
  }
  if (ans == 0) {
    cout << 1 << " " << 1 << endl;
  } else {
    cout << ans << " ";
    if (M - ans <= colors[M - 1])
      cout << 8 << endl;
    else
      cout << ans + colors[M - 1] << endl;
  }
  return 0;
}
