#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cnt[8] = {};
  int rainbow = 0;
  int boundary[] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    for (int j = 0; j < 8; j++) {
      if (temp < boundary[j]) {
        cnt[j] = 1;
        break;
      }
    }
    if (temp >= 3200) rainbow++;
  }
  int fixed = accumulate(cnt, cnt + 8, 0);
  if (fixed == 0) {
    cout << 1 << " " << min(rainbow, 8);
  } else {
    cout << fixed << " " << min(fixed + rainbow, 8);
  }
  return 0;
}
