#include <bits/stdc++.h>
using namespace std;
long long ans;
int cnt;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> a(N);
  vector<bool> rate(9);
  for (long long i = 0; i < (long long)(9); ++i) {
    rate[i] = false;
  }
  for (long long i = 0; i < (long long)(N); ++i) {
    cin >> a[i];
    if (a[i] >= 1 && a[i] <= 399) rate[0] = true;
    if (a[i] >= 400 && a[i] <= 799) rate[1] = true;
    if (a[i] >= 800 && a[i] <= 1199) rate[2] = true;
    if (a[i] >= 1200 && a[i] <= 1599) rate[3] = true;
    if (a[i] >= 1600 && a[i] <= 1999) rate[4] = true;
    if (a[i] >= 2000 && a[i] <= 2399) rate[5] = true;
    if (a[i] >= 2400 && a[i] <= 2799) rate[6] = true;
    if (a[i] >= 2800 && a[i] <= 3199) rate[7] = true;
    if (a[i] >= 3200) {
      rate[8] = true;
      cnt++;
    }
  }
  for (long long i = 0; i < (long long)(8); ++i) {
    if (rate[i]) ans++;
  }
  if (rate[8]) {
    if (ans + cnt >= 8) {
      cout << ans << " " << 8 << endl;
    } else {
      cout << ans << " " << ans + cnt << endl;
    }
  } else
    cout << ans << " " << ans << endl;
  return 0;
}
