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