#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, rate, ans = 0, max0 = 0;
  cin >> n;
  vector<int> a(8);
  for (int i = 0; i < n; i++) {
    cin >> rate;
    rate = rate / 400;
    if (rate >= 8) {
      max0++;
      continue;
    }
    a[rate]++;
  }
  for (int a1 : a)
    if (a1 > 0) ans++;
  if (ans == 0) ans = 1;
  max0 = min(ans + max0, 8);
  cout << ans << ' ' << max0 << endl;
}
