#include <bits/stdc++.h>
using namespace std;
int rate[9];
int n, tmp, syou, ans, ma, mi;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    syou = tmp / 400;
    if (syou < 8)
      rate[syou]++;
    else
      rate[8]++;
  }
  for (int i = 0; i < 8; i++)
    if (rate[i]) ans++;
  if (!ans) ans++;
  cout << ans << " " << ans + rate[8] << endl;
  return 0;
}
