#include <bits/stdc++.h>
constexpr long MOD = 1e9 + 7;
using namespace std;
using P = pair<long, long>;
using VI = vector<long>;
int rate(int n) {
  if (n < 3200) {
    return n / 400;
  }
  return -1;
}
int main() {
  int n, a;
  cin >> n;
  map<int, int> m;
  for (long(i) = 0; (i) < (n); (i)++) {
    cin >> a;
    m[rate(a)]++;
  }
  int ans = 0;
  int any = m[-1];
  for (long(i) = 0; (i) < (8); (i)++) {
    if (m[i]) ans++;
  }
  cout << ans << " " << ans + any << endl;
}
