#include <bits/stdc++.h>
using namespace std;
int color(int rate) { return rate / 400; }
int main() {
  int n;
  cin >> n;
  int colors[] = {0, 0, 0, 0, 0, 0, 0, 0};
  int fn = 0;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (color(a) <= 7)
      colors[color(a)]++;
    else
      fn++;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) ans += (colors[i] > 0);
  int _min = max(ans, int(fn > 0));
  int _max = min(ans + fn, 8);
  cout << _min << ' ' << _max << endl;
  return 0;
}
