#include <bits/stdc++.h>
using namespace std;
int N;
bool Count[8] = {};
int color(int rate) { return rate / 400; }
int main() {
  cin >> N;
  int countEx = 0;
  int rate;
  for (int i = 0; i < N; i++) {
    cin >> rate;
    if (rate < 3200)
      Count[color(rate)] = true;
    else
      countEx++;
  }
  int countColors = 0;
  for (int i = 0; i < 8; i++) {
    if (Count[i]) countColors++;
  }
  cout << countColors << " " << min(countEx + countColors, 8) << endl;
  return 0;
}
