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