#include <bits/stdc++.h>
using namespace std;
long long dy[4] = {1, 0, -1, 0};
long long dx[4] = {0, 1, 0, -1};
int32_t main() {
  long long a[] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199};
  long long n, ans = 0, cnt = 0;
  cin >> n;
  vector<bool> f(n, false);
  for (long long i = 0; i < n; i++) {
    long long s;
    cin >> s;
    if (s >= 3200) {
      cnt++;
      continue;
    }
    for (long long j = 0; j < 8; j++) {
      if (a[j] > s) {
        if (!f[j]) {
          f[j] = true;
          ans++;
        }
        break;
      }
    }
  }
  if (ans > 0) {
    cout << ans << endl;
  } else {
    cout << 1 << endl;
  }
  if (ans + cnt >= 8) {
    cout << 8 << endl;
  } else {
    cout << ans + cnt << endl;
  }
}
