#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  bool b[8];
  for (int i = 0; i < 8; i++) b[i] = false;
  int over = 0;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    int k = a[i] / 400;
    if (k <= 7)
      b[k] = true;
    else
      over++;
  }
  int max = 0;
  int min = 0;
  for (int i = 0; i < 8; i++) {
    max += b[i];
    min += b[i];
  }
  if (min > 0)
    cout << min << " ";
  else
    cout << 1 << " ";
  max += over;
  if (max >= 8)
    cout << 8 << endl;
  else
    cout << max << endl;
  return 0;
}
