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