#include <bits/stdc++.h>
using namespace std;
signed main(void) {
  int n;
  vector<int> a;
  int b = 0;
  for (int i = 0; i < 8; i++) a.push_back(0);
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a_;
    cin >> a_;
    if (a_ < 3200)
      a[a_ / 400] = 1;
    else
      b++;
  }
  int sum = 0;
  int min_, max_;
  for (int i = 0; i < 8; i++) sum += a[i];
  min_ = max(sum, min(1, b));
  max_ = min(8, sum + b);
  cout << min_ << " " << max_ << "\r\n";
}
