#include <bits/stdc++.h>
using namespace std;
int main() {
  int colors_count[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0}, n;
  cin >> n;
  int input;
  for (int i = 0; i < n; i++) {
    cin >> input;
    if (input < 3200) {
      for (int j = 0; j < 8; j++) {
        if (j * 400 <= input && input < (j + 1) * 400) {
          colors_count[j]++;
        }
      }
    } else {
      colors_count[8]++;
    }
  }
  int max_type = 0, min_type = 0;
  for (int i = 0; i < 8; i++) {
    if (colors_count[i]) {
      max_type++;
      min_type++;
    }
  }
  if (0 < min_type && min_type < 8) {
    max_type += colors_count[8];
  }
  cout << min_type << " " << max_type << endl;
}
