#include <bits/stdc++.h>
using namespace std;
int n;
int a[4800];
bool color[8];
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> n;
  int higer_rate = 0;
  for (int i = 0; i < (8); ++i) color[i] = false;
  for (int i = 0; i < (n); ++i) {
    cin >> a[i];
    if (a[i] < 3200)
      color[(int)floor(a[i] / 400)] = true;
    else
      higer_rate++;
  }
  int true_count = 0;
  for (int i = 0; i < (8); ++i)
    if (color[i]) true_count++;
  int max_count =
      (higer_rate > 0) ? (min(higer_rate + true_count, 8)) : true_count;
  int min_count = max(1, true_count);
  cout << min_count << " " << max_count << "\n";
}
