#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;
int main() {
  int li[10] = {};
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    li[std::min(8, a / 400)]++;
  }
  int c = 0;
  for (int i = 0; i < 8; i++)
    if (li[i]) c++;
  cout << c << " " << c + li[8] << endl;
  return 0;
}
