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