#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m = 0, M = 0;
  cin >> n;
  vector<long long> a(n);
  for (long long i = 0, i_len = (n); i < i_len; ++i) {
    cin >> a[i];
  }
  long long r = 0;
  set<long long> c;
  for (long long i = 0, i_len = (n); i < i_len; ++i) {
    if (a[i] < 3200)
      c.insert((long long)floor((double)a[i] / 400));
    else
      r++;
  }
  for (long long i = 0, i_len = (8); i < i_len; ++i) {
    if (c.count(i)) {
      m++;
      M++;
    }
  }
  if (r > 0 && n == 1) m++;
  M += r;
  cout << m << " " << M << endl;
  return 0;
}
