#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9 + 7;
const string alp = "abcdefghijklmnopqrstuvwxyz";
const string ALP = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int main() {
  long long N;
  cin >> N;
  long long a[N];
  for (int i = 0; i < (int)(N); i++) cin >> a[i];
  vector<long long> judge(13, false);
  long long red = 0;
  for (int i = 0; i < N; i++) {
    judge[a[i] / 400] = true;
    if (a[i] / 400 >= 8) red++;
  }
  long long ma = 0, mi = 0;
  for (int i = 0; i < 13; i++) {
    if (judge[i]) ma++;
  }
  mi = ma - red;
  if (mi < 1) mi = 1;
  cout << mi << " " << ma << endl;
}
