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