#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, i, j, k;
  set<int> s1;
  int s2 = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a;
    if (a > 3199) {
      s2++;
      continue;
    }
    if (a >= 1 && a <= 399) {
      s1.insert(1);
      continue;
    }
    if (a >= 400 && a <= 799) {
      s1.insert(2);
      continue;
    }
    if (a >= 800 && a <= 1199) {
      s1.insert(3);
      continue;
    }
    if (a >= 1200 && a <= 1599) {
      s1.insert(4);
      continue;
    }
    if (a >= 1600 && a <= 1999) {
      s1.insert(5);
      continue;
    }
    if (a >= 2000 && a <= 2399) {
      s1.insert(6);
      continue;
    }
    if (a >= 2400 && a <= 2799) {
      s1.insert(7);
      continue;
    }
    if (a >= 2800 && a <= 3199) {
      s1.insert(8);
      continue;
    }
  }
  j = s1.size();
  if (j > 0)
    cout << j << " ";
  else
    cout << "1"
         << " ";
  if (j + s2 > 8)
    cout << 8;
  else
    cout << j + s2;
}
