#include <bits/stdc++.h>
using namespace std;
long long n;
vector<long long> a(100);
signed main() {
  cin >> n;
  a.resize(n);
  for (long long i = (0); i < (n); ++i) {
    cin >> a[i];
  }
  sort((a).begin(), (a).end());
  long long res = 0;
  long long wild = 0;
  long long now = -1;
  for (long long i = (0); i < (n); ++i) {
    if (a[i] >= 3200) {
      wild++;
    } else if (a[i] / 400 != now) {
      res++;
      now = a[i] / 400;
    }
  }
  long long mi, ma;
  mi = max(res, 1LL);
  ma = min(res + wild, 8LL);
  cout << mi << " " << ma << endl;
  return 0;
}
