#include <bits/stdc++.h>
using namespace std;
int counter = 9;
int get(int r) {
  if (r <= 399) return 1;
  if (r <= 799) return 2;
  if (r <= 1199) return 3;
  if (r <= 1599) return 4;
  if (r <= 1999) return 5;
  if (r <= 2399) return 6;
  if (r <= 2799) return 7;
  if (r <= 3199) return 8;
  return counter++;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> ratings(n);
  for (int i = 0; i < n; i++) {
    cin >> ratings[i];
  }
  set<int> colors;
  for (int r : ratings) {
    colors.insert(get(r));
  }
  int above = counter - 9;
  int mini = 0;
  int maxi = colors.size();
  while (!colors.empty() && *colors.begin() <= 8) {
    mini++;
    colors.erase(colors.begin());
  }
  if (n - above >= 1) {
    if (mini >= 1) {
    } else {
      mini = 1;
    }
  }
  cout << mini << " " << maxi << endl;
  return 0;
}
