#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int colorScore[9] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4800};
  int scorePeople[9] = {0};
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    for (int j = 0; j < 9; j++) {
      if (a < colorScore[j]) {
        scorePeople[j]++;
        break;
      }
    }
  }
  int emptyClassCount = 0;
  for (int i = 0; i < 8; i++) {
    if (scorePeople[i] == 0) emptyClassCount++;
  }
  int minNum = max(1, 8 - emptyClassCount);
  int maxNum = 8 - emptyClassCount + scorePeople[8];
  cout << minNum << " " << maxNum << endl;
  return 0;
}
