#include <bits/stdc++.h>
using namespace std;
int n;
void solve() {
  vector<int> ans(9, 0);
  int x, res = 0;
  while (n--) {
    cin >> x;
    ans[(x / 400 >= 8 ? 8 : x / 400)]++;
  }
  for (x = 0; x < 9; x++)
    if (x < 8 && ans[x])
      res++;
    else if (x == 8 && ans[x])
      res += ans[x];
  cout << res - ans[8] << " " << res << endl;
}
int main() {
  while (cin >> n) solve();
}
