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