#include <bits/stdc++.h>
using namespace std;
signed main() {
  int n, a;
  cin >> n;
  int iro[9] = {};
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a >= 3200)
      iro[8]++;
    else
      iro[a / 400]++;
  }
  int ans1 = 0;
  for (int i = 0; i < 8; i++) {
    if (iro[i] != 0) {
      ans1++;
    }
  }
  cout << ans1 << ' ' << ans1 + iro[8];
  return 0;
}
