#include <bits/stdc++.h>
using namespace std;
int n, a[1010], c[8], v[8] = {400, 800, 1200, 1600, 2400, 2800, 3200}, cnt,
                      cnt2;
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200)
      cnt++;
    else
      for (int j = 0; j < 7; j++)
        if (a[i] < v[j]) {
          c[j]++;
          break;
        }
  }
  for (int i = 0; i < 7; i++)
    if (c[i]) cnt2++;
  cout << max(1, cnt2) << " " << min(cnt2 + cnt, 8) << endl;
  return 0;
}
