#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> color(9);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    color.at(a / 400)++;
  }
  int minimum = 0, maximum;
  for (int i = 0; i < 8; i++) {
    if (color.at(i) > 0) minimum++;
  }
  maximum = minimum + color.at(8);
  if (minimum == 0) minimum++;
  cout << minimum << " " << maximum << endl;
}
