#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < (int)(N); i++) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  int min_ans = 0;
  int max_ans = 0;
  int num = -1;
  for (int i = 0; i < (int)(N); i++) {
    int n = a[i] / 400;
    if (num != n && n < 8) {
      min_ans++;
      max_ans++;
      num = n;
    }
    if (n >= 8) max_ans++;
  }
  cout << min_ans << " " << max_ans << endl;
  return 0;
}
