#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> cnt(9, 0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    cnt[a / 400]++;
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i] > 0) sum++;
  }
  if (cnt[8] == n) {
    cout << 1 << " " << n << endl;
  } else {
    cout << sum << " " << sum + cnt[8] << endl;
  }
  return 0;
}
