#include <bits/stdc++.h>
using namespace std;
const int MD = (int)1e9 + 7;
void dbg() { cerr << "\n"; }
template <class T, class... T2>
void dbg(const T& fst, const T2&... rst) {
  cerr << fst << ": ";
  dbg(rst...);
}
template <class T, class T2>
void amin(T& a, T2 b) {
  if (a > b) a = b;
}
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  int n;
  ;
  cin >> n;
  vector<int> a(n);
  for (int(i) = 0; (i) < (n); (i)++) cin >> a[i];
  vector<int> dt(10);
  for (int(i) = 0; (i) < (n); (i)++) dt[a[i] / 400]++;
  int ct = 0;
  for (int(i) = 0; (i) < (8); (i)++) ct += dt[i] > 0;
  int mn = ct;
  if (ct == 0 && dt[8] > 0) mn = 1;
  int mx = ct + dt[8];
  cout << mn << " " << mx << "\n";
  return 0;
}
