#include <bits/stdc++.h>
using namespace std;
int main() {
  int cnt[9], a, n;
  for (int i = 0; i < 9; i++) cnt[i] = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200) {
      cnt[a / 400]++;
    } else
      cnt[8]++;
  }
  int ans = 0;
  for (int i = 0; i < 9; i++) {
    if (cnt[i] > 0) ans++;
  }
  cout << ans << " ";
  ans += cnt[8] - 1;
  cout << ans << endl;
  return 0;
}
