#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (a < b) {
    return gcd(b, a);
  } else if (a % b) {
    return gcd(b, a % b);
  } else {
    return b;
  }
}
long long MOD = 1000000007;
int main() {
  long long N;
  cin >> N;
  vector<long long> a(N);
  long long sum[10];
  for (long long i = 0; i < N; ++i) {
    cin >> a[i];
  }
  for (long long i = 0; i < 8; ++i) {
    sum[i] = 0;
  }
  for (long long i = 0; i < N; ++i) {
    for (long long j = 0; j < 8; j++) {
      if (a[i] >= j * 400 && a[i] < (j + 1) * 400) sum[j]++;
    }
  }
  long long cnt = 0;
  for (long long j = 0; j < 8; ++j) {
    if (sum[j] > 0) cnt++;
  }
  long long ans = cnt;
  for (long long j = 0; j < N; ++j) {
    if (a[j] >= 3200) ans++;
  }
  cout << cnt << ' ' << ans << endl;
}
