#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  long long n;
  cin >> n;
  vector<long long> a(n, 0);
  vector<bool> col(8, false);
  long long num_pros = 0;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 3200)
      col[a[i] / 400] = true;
    else
      num_pros++;
  }
  long long min_cols = 0;
  for (long long i = 0; i < 8; i++)
    if (col[i]) min_cols++;
  cout << min_cols << " " << min_cols + num_pros << endl;
  return 0;
}
