#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using vl = vector<ll>;
using vvl = vector<vl>;
int main() {
  ll n;
  cin >> n;
  vl rate(n);
  for (int i = 0; i < (n); i++) {
    ll x;
    cin >> x;
    rate.at(i) = x;
  }
  ll count = 0;
  ll free = 0;
  vector<bool> tf(8, false);
  for (int i = 0; i < (n); i++) {
    for (int j = 0; j < (8); j++) {
      if (400 * j <= rate.at(i) && rate.at(i) <= 400 * j + 399) {
        tf.at(j) = true;
      }
      if (rate.at(i) >= 3200) {
        free++;
        break;
      }
    }
  }
  for (int i = 0; i < (8); i++) {
    if (tf.at(i)) {
      count++;
    }
  }
  cout << count << ' ' << count + free << endl;
}
