#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int over3200 = 0;
  int color[8] = {};
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    temp /= 400;
    if (temp <= 7) {
      color[temp]++;
    }
    if (temp >= 8) {
      over3200++;
    }
  }
  int colorFixed = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      colorFixed++;
    }
  }
  if (colorFixed) {
    cout << colorFixed << " " << min(colorFixed + over3200, 8);
  } else {
    cout << 1 << " " << min(over3200, 8);
  }
  return 0;
}
