#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<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 < (8); ++i)
    if (cnt[i]) mn++;
  cout << mn << " " << mn + cnt[8] << '\n';
  return 0;
}
