#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  long long d[9] = {};
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    d[min((long long)8, a[i] / 400)]++;
  }
  long long MIN = 0, MAX = 0;
  for (long long i = 0; i < 8; i++)
    if (d[i]) MIN++;
  MAX = MIN;
  if (d[8]) {
    MAX = min((long long)8, MIN + d[8]);
  }
  if (MIN == 0) MIN = 1;
  cout << MIN << " " << MAX << endl;
}
