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