#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, N, MIN = 0, MAX = 0,
            range[8] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200}, free = 0,
            ans = 0;
  bool color[8];
  for (int i = 0; i < 8; i++) {
    color[i] = false;
  }
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (range[7] <= a) {
      free++;
      continue;
    }
    for (int j = 6; j >= 0; j--) {
      if (range[j] <= a) {
        color[j + 1] = true;
        break;
      }
    }
  }
  for (int i = 0; i < 8; i++) {
    if (color[i]) {
      ans++;
    }
  }
  if (ans == 0) {
    MIN = 1;
    MAX = min(free, 8);
  } else {
    MIN = ans;
    MAX = min(ans + free, 8);
  }
  cout << MIN << " " << MAX;
  return 0;
}
