#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[10] = {0}, x, ans = 0;
  for (cin >> n; n--; a[min(8, x / 400)]++) cin >> x;
  for (int i = 0; i < 8; ans += !!a[i++])
    ;
  cout << max(ans, 1) << " " << min(8, ans + a[8]);
}
