#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using  namespace std;

int cnt[9];

int main() {
  int n;
  cin >> n;
  rep(i, n) {
    int a;
    cin >> a;
    ++cnt[min(8, a/400)];
  }
  int l = 0, r = 0;
  rep(i, 8) if (cnt[i]) ++l;
  r = l + cnt[8];
  l = max(1, l);
  cout << l << " " << r << endl;
  return 0;
}