#include <bits/stdc++.h>
using ll = long long;
using namespace std;
constexpr int MOD = 1e9 + 7;
constexpr ll MOD_LL = ll(1e9 + 7);
int main(void) {
  int n;
  cin >> n;
  vector<int> cnt(9, 0);
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (a / 400 >= 8)
      cnt[8]++;
    else
      cnt[a / 400]++;
  }
  int mi = 0;
  int ma = 0;
  for (int i = 0; i < 8; ++i) {
    if (cnt[i]) mi++;
  }
  ma += mi;
  if (cnt.back() > 0) ma += cnt.back();
  cout << mi << " " << ma << endl;
  return 0;
}
