#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int MAXN = 1010;
int have[8];
int main() {
  ios::sync_with_stdio(false);
  int n, k, Max = 0, Min = 0x7f7f7f;
  int count = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> k;
    if (k >= 3200) {
      count++;
      continue;
    }
    have[k / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (have[i]) ans++;
  }
  if (ans == 0 && count) cout << 1 << " " << count << endl;
  cout << ans << " " << ans + count << endl;
  return 0;
}
