#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void solve(long long N, std::vector<long long> a) {
  vector<ll> color(9, 0);
  for (ll i = 0; i < N; i++) {
    if (a[i] <= 399)
      color[0]++;
    else if (a[i] <= 799)
      color[1]++;
    else if (a[i] <= 1199)
      color[2]++;
    else if (a[i] <= 1599)
      color[3]++;
    else if (a[i] <= 1999)
      color[4]++;
    else if (a[i] <= 2399)
      color[5]++;
    else if (a[i] <= 2799)
      color[6]++;
    else if (a[i] <= 3199)
      color[7]++;
    else
      color[8]++;
  }
  ll cnt = 0;
  for (ll i = 0; i < 8; i++) {
    if (color[i] > 0) cnt++;
  }
  cout << cnt << " " << cnt + color[8] << endl;
}
int main() {
  long long N;
  scanf("%lld", &N);
  std::vector<long long> a(N);
  for (int i = 0; i < N; i++) {
    scanf("%lld", &a[i]);
  }
  solve(N, std::move(a));
  return 0;
}
