#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
int main() {
  ll n;
  cin >> n;
  vector<ll> a(n);
  for (int i = 0; i < (int)(n); i++) cin >> a.at(i);
  vector<ll> f(8);
  ll x = 0;
  for (int i = 0; i < n; i++) {
    if (a.at(i) < 400)
      f.at(0) = 1;
    else if (a.at(i) < 800)
      f.at(1) = 1;
    else if (a.at(i) < 1200)
      f.at(2) = 1;
    else if (a.at(i) < 1600)
      f.at(3) = 1;
    else if (a.at(i) < 2000)
      f.at(4) = 1;
    else if (a.at(i) < 2400)
      f.at(5) = 1;
    else if (a.at(i) < 2800)
      f.at(6) = 1;
    else if (a.at(i) < 3200)
      f.at(7) = 1;
    else
      x++;
  }
  ll ans = 0;
  for (int i = 0; i < (int)(8); i++) ans += f.at(i);
  cout << ans << " " << ans + x << endl;
  return 0;
}
