#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
  int n;
  cin >> n;
  vector<int> vec(n);
  for (int i = 0; i < n; i++) {
    cin >> vec[i];
  }
  vector<bool> iro;
  for (int i = 0; i < 8; i++) {
    iro.push_back(false);
  }
  int r;
  int t = 0;
  for (int i = 0; i < n; i++) {
    r = vec[i];
    r /= 400;
    if (r >= 8) {
      t++;
      continue;
    }
    iro[r] = true;
  }
  if (t == n) {
    cout << 1 << " " << 8 << endl;
    return 0;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (iro[i]) {
      ans++;
    }
  }
  cout << ans << " ";
  ans += t;
  if (ans >= 8) {
    cout << 8 << endl;
    return 0;
  } else {
    cout << ans << endl;
    return 0;
  }
}
