#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int col[] = {0, 0, 0, 0, 0, 0, 0, 0};
  int higher_remainder = 0;
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    if (tmp < 3199) {
      col[tmp / 400] = 1;
    } else {
      higher_remainder++;
    }
  }
  int col_remainder = 0;
  for (int i = 0; i < 8; i++) {
    if (col[i] == 0) col_remainder++;
  }
  int ans_max = (8 - col_remainder) + higher_remainder;
  if (ans_max >= 8) ans_max = 8;
  cout << 8 - col_remainder << " " << ans_max << endl;
  return 0;
}
