#include <bits/stdc++.h>
using namespace std;
void mul_mod(long long& a, long long b) {
  a *= b;
  a %= (1000000007ll);
}
int main(void) {
  int n, a, h[9], i, ans = 0;
  fill(h, h + 9, 0);
  for (i = 0; i < n; ++i) {
    cin >> a;
    h[min(3200, a) / 400]++;
  }
  for (i = 0; i < 8; i++) {
    if (h[i]) {
      ans++;
    }
  }
  cout << ans << " " << (ans + h[8]) << endl;
  return 0;
}
