#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long INF = 1e18;
const double pi = acos(-1.0);
int main(void) {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (long long i = 0; i < (n); ++i) cin >> a[i];
  long long maxi = 0, mini = 0;
  sort((a).begin(), (a).end());
  vector<bool> color(8, false);
  for (long long i = 0; i < (n); ++i) {
    if (a[i] < 3200)
      color[a[i] / 400] = true;
    else
      maxi++;
  }
  for (long long i = 0; i < (8); ++i)
    if (color[i]) mini++;
  maxi += mini;
  cout << mini << " " << maxi << endl;
  return 0;
}
