#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  vector<int> cnt(9, 0);
  for (int i = 0; i < n; i++) {
    if (a[i] <= 399)
      cnt[0] = 1;
    else if (400 <= a[i] && a[i] <= 790)
      cnt[1] = 1;
    else if (800 <= a[i] && a[i] <= 1199)
      cnt[2] = 1;
    else if (1200 <= a[i] && a[i] <= 1599)
      cnt[3] = 1;
    else if (1600 <= a[i] && a[i] <= 1999)
      cnt[4] = 1;
    else if (2000 <= a[i] && a[i] <= 2399)
      cnt[5] = 1;
    else if (2400 <= a[i] && a[i] <= 2799)
      cnt[6] = 1;
    else if (2800 <= a[i] && a[i] <= 3199)
      cnt[7] = 1;
    else
      cnt[8]++;
  }
  int cntMax = 0;
  for (auto x : cnt) {
    cntMax += x;
  }
  cout << cntMax - cnt[8] << ' ' << cntMax << endl;
  return 0;
}
