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