#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> buckets(9);
  for (int i = 0; i < N; ++i) {
    int v;
    cin >> v;
    if (v >= 3200)
      ++buckets[8];
    else
      ++buckets[v / 400];
  }
  int colors = 0;
  for (int i = 0; i <= 7; ++i) {
    if (buckets[i]) {
      cerr << buckets[i] << '\n';
      ++colors;
    }
  }
  int minColors;
  int maxColors;
  if (buckets[8]) {
    if (colors == 0) colors = 1;
    minColors = colors;
    maxColors = colors + buckets[8];
  } else {
    minColors = maxColors = colors;
  }
  cout << minColors << ' ' << maxColors << '\n';
  return 0;
}
