#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> cnt(9, 0);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      cnt[8]++;
    else
      cnt[a / 400]++;
  }
  int min_ans = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i] > 0) {
      min_ans++;
    }
  }
  int max_ans = min(8, min_ans + cnt[8]);
  cout << min_ans << ' ' << max_ans << endl;
}
