#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1000000007;
const double PI = 3.14159265358979;
const ll INF = pow(10, 18);
string abc = "abcdefghijklmnopqrstuvwxyz";
string ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int main() {
  ll n;
  cin >> n;
  vector<ll> a(n);
  for (ll i = 0; i < n; i++) {
    cin >> a[i];
  }
  vector<ll> cnt(10);
  for (ll i = 0; i < n; i++) {
    if (a[i] < 3200)
      cnt[a[i] / 400]++;
    else
      cnt[8]++;
  }
  ll MIN = 0;
  for (ll i = 0; i < 8; i++) {
    if (cnt[i] != 0) {
      MIN++;
    }
  }
  cout << MIN << " " << MIN + cnt[8] << endl;
}
