#include <bits/stdc++.h>
using namespace std;
#pragma GCC diagnostic ignored "-Wmissing-declarations"
inline int safe_mul(const int x, const int y)
    __attribute__((warn_unused_result));
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> mask(8, 0);
  int cnt = 0;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    x /= 400;
    if (x >= 8)
      ++cnt;
    else
      mask[x] = 1;
  }
  int ans = 0;
  for (int x : mask) ans += x;
  int m1 = ans;
  if (ans == 0 && cnt > 0) m1++;
  int m2 = min(8, ans + cnt);
  cout << m1 << ' ' << m2 << endl;
}
