#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 one = 0;
  int zero = 0;
  for (int i = 0; i < 8; ++i) {
    if (cnt[i])
      one++;
    else
      zero++;
  }
  int maxans = one, minans = one;
  if (cnt.back() > 0) {
    maxans += min(zero, cnt.back());
  }
  cout << minans << " " << maxans << endl;
  return 0;
}
