#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  ll n;
  cin >> n;
  map<ll, ll> col;
  ll cnt = 0;
  for (int i = 0; i < n; i++) {
    ll k;
    cin >> k;
    if (k < 3200)
      col[k / 400]++;
    else
      cnt++;
  }
  ll res = 0;
  for (int i = 0; i <= 7; i++) {
    if (col[i] != 0) res++;
  }
  cout << max<ll>(1, res) << " " << res + cnt << endl;
}
