#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int color[9] = {0};
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    if (a >= 3200) {
      a = 3200;
    }
    color[a / 400]++;
  }
  int colorNum = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      colorNum++;
    }
  }
  cout << max(colorNum, 0) << " " << min(colorNum + color[8], 9) << endl;
  return 0;
}
