#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int tmp, colours[9]{}, ans_min = 0;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    if (tmp >= 3200)
      colours[8]++;
    else {
      colours[tmp / 400]++;
      if (colours[tmp / 400] == 1) ans_min++;
    }
  }
  if (ans_min == 0 and colours[8] > 0)
    cout << 1;
  else if (ans_min > 0)
    cout << ans_min;
  cout << " ";
  if (ans_min + colours[8] > 8)
    cout << 8;
  else
    cout << ans_min + colours[8];
  return 0;
}
