#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); ++i) cin >> a[i];
  sort(a.begin(), a.end());
  int res = 0;
  ;
  int ans = 1;
  for (int i = 1; i < n; ++i) {
    if (a[i] >= 3200) {
      res++;
      continue;
    }
    if (a[i] - a[i - 1] >= 400) ans++;
  }
  if (res == 0 || ans == 8)
    cout << ans << ' ' << ans << endl;
  else {
    int sol = min(8 - ans, res);
    cout << ans << ' ' << ans + sol << endl;
  }
  return 0;
}
