#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll n;
  cin >> n;
  vector<ll> a(n);
  ll arr[8] = {0};
  ll free = 0;
  for (ll i = 0; i < (ll)(n); i++) {
    cin >> a[i];
    if (a[i] < 400) {
      arr[0] = 1;
    } else if (a[i] < 800) {
      arr[1] = 1;
    } else if (a[i] < 1200) {
      arr[2] = 1;
    } else if (a[i] < 1600) {
      arr[3] = 1;
    } else if (a[i] < 2000) {
      arr[4] = 1;
    } else if (a[i] < 2400) {
      arr[5] = 1;
    } else if (a[i] < 2800) {
      arr[6] = 1;
    } else if (a[i] < 3200) {
      arr[7] = 1;
    } else {
      free++;
    }
  }
  ll sum = 0;
  for (ll i = 0; i < (ll)(8); i++) {
    sum += arr[i];
  }
  cout << max(ll(1), sum) << " " << min(ll(8), sum + free) << endl;
  return 0;
}
