#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int cnt[9] = {};
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a >= 8) a = 8;
    cnt[a]++;
  }
  int mn = 0;
  for (int i = 0; i <= 7; i++) {
    if (cnt[i]) mn++;
  }
  int mx = 0;
  if (mn == 0) {
    mn = mx = 1;
  } else
    mx = mn + cnt[8];
  cout << mn << " " << mx << endl;
  return 0;
}
