#include <bits/stdc++.h>
using namespace std;
long long cnt[9] = {};
signed main() {
  long long N;
  cin >> N;
  for (long long i = 0; i < N; i++) {
    long long tmp;
    cin >> tmp;
    if (1 <= tmp && tmp <= 399)
      cnt[0]++;
    else if (400 <= tmp && tmp <= 799)
      cnt[1]++;
    else if (800 <= tmp && tmp <= 1199)
      cnt[2]++;
    else if (1200 <= tmp && tmp <= 1599)
      cnt[3]++;
    else if (1600 <= tmp && tmp <= 1999)
      cnt[4]++;
    else if (2000 <= tmp && tmp <= 2399)
      cnt[5]++;
    else if (2400 <= tmp && tmp <= 2799)
      cnt[6]++;
    else if (2800 <= tmp && tmp <= 3199)
      cnt[7]++;
    else if (3200 <= tmp)
      cnt[8]++;
  }
  long long min = 0, max = 0, now = 0;
  for (long long i = 0; i < 8; i++) {
    if (cnt[i] != 0) now++;
  }
  if (now == 0 && cnt[8] != 0) {
    if (cnt[8] > 8) cnt[8] = 8;
    cout << "1"
         << " " << cnt[8] << endl;
    return 0;
  }
  max = now + cnt[8];
  if (max > 8) max = 8;
  min = now;
  cout << min << " " << max << endl;
}
