#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);
  vector<bool> c(8);
  ll ans = 0;
  ll cnt = 0;
  for (int i = 0; i < (int)(n); i++) {
    cin >> a.at(i);
    if (a.at(i) < 400) {
      if (!c.at(0)) ans++;
      c.at(0) = true;
    } else if (a.at(i) < 800) {
      if (!c.at(1)) ans++;
      c.at(1) = true;
    } else if (a.at(i) < 1200) {
      if (!c.at(2)) ans++;
      c.at(2) = true;
    } else if (a.at(i) < 1600) {
      if (!c.at(3)) ans++;
      c.at(3) = true;
    } else if (a.at(i) < 2000) {
      if (!c.at(4)) ans++;
      c.at(4) = true;
    } else if (a.at(i) < 2400) {
      if (!c.at(5)) ans++;
      c.at(5) = true;
    } else if (a.at(i) < 2800) {
      if (!c.at(6)) ans++;
      c.at(6) = true;
    } else if (a.at(i) < 3200) {
      if (!c.at(7)) ans++;
      c.at(7) = true;
    } else {
      cnt++;
    }
  }
  cout << ans << " " << min((ll)8, ans + cnt) << endl;
  return 0;
}
