#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> rate(9, 0);
  int a;
  for (int i = 0; i < n; i++) {
    cin >> a;
    int b = min(8, a / 400);
    rate[b]++;
  }
  int res = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i]) res++;
  }
  if (res)
    cout << res << " ";
  else
    cout << 0 << " ";
  cout << res + rate[8] << endl;
}
