#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> cols(9);
  for (int i = 0; i < N; ++i) {
    int rate;
    cin >> rate;
    for (int start = 0, j = 0; start <= 2800; start += 400, ++j) {
      if (start <= rate && rate <= start + 399) {
        ++cols[j];
        break;
      }
    }
    if (3200 <= rate) {
      ++cols[8];
    }
  }
  int min_n = 0, max_n = 0;
  int cnt = 0;
  for (int i = 0; i < 9; ++i) {
    if (i != 8) {
      if (0 < cols[i]) {
        ++min_n, ++max_n;
        ++cnt;
      }
    } else {
      min_n += max(0, cols[i] - cnt);
      max_n += cols[i];
    }
  }
  cout << min_n << " " << max_n << endl;
}
