#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 5;
const long long mod = 1e9 + 7;
long long ans = 0;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  long long above = 0;
  vector<long long> cnt(13, 0);
  for (long long i = 0; i < n; ++i) {
    long long a;
    cin >> a;
    if (a >= 1 and a <= 399)
      cnt[1] = 1;
    else if (a >= 400 and a <= 799)
      cnt[8] = 1;
    else if (a >= 800 and a <= 1199)
      cnt[2] = 1;
    else if (a >= 1200 and a <= 1599)
      cnt[3] = 1;
    else if (a >= 1600 and a <= 1999)
      cnt[4] = 1;
    else if (a >= 2000 and a <= 2399)
      cnt[5] = 1;
    else if (a >= 2400 and a <= 2799)
      cnt[6] = 1;
    else if (a >= 2800 and a <= 3199)
      cnt[7] = 1;
    else
      above++;
  }
  for (long long i = 1; i <= 8; ++i) {
    ans += cnt[i];
  }
  cout << ans << " " << ans + above << "\n";
}
