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