#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> colorNum(8, 0);
  vector<int> color{399, 799, 1199, 1599, 1999, 2399, 2799, 3199};
  int free = 0;
  int minNum = 0;
  int notUsedColor = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    for (int m = 0; m < 8; m++) {
      if (color[m] >= a[i]) {
        colorNum[m]++;
        break;
      }
    }
    if (a[i] >= 3200) free++;
  }
  for (int m = 0; m < 8; m++) {
    if (colorNum[m] > 0) {
      minNum++;
    } else {
      notUsedColor++;
    }
  }
  cout << minNum << " ";
  int maxNum = (notUsedColor - free >= 0) ? free : notUsedColor;
  cout << minNum + maxNum << endl;
  return 0;
}
