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