#include <bits/stdc++.h>
using namespace std;
int main() {
  int ansmin = 0, ansmax = 0;
  int n;
  cin >> n;
  bool b[10];
  for (int i = 0; i < 10; i++) b[i] = false;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 400)
      b[0] = true;
    else if (a < 800)
      b[1] = true;
    else if (a < 1200)
      b[2] = true;
    else if (a < 1500)
      b[3] = true;
    else if (a < 2000)
      b[4] = true;
    else if (a < 2400)
      b[5] = true;
    else if (a < 2800)
      b[6] = true;
    else if (a < 3200)
      b[7] = true;
    else {
      b[8] = true;
      ansmax++;
    }
  }
  for (int i = 0; i <= 7; i++) {
    if (b[i]) {
      ansmin++;
      ansmax++;
    }
  }
  if (!b[0] && !b[1] && !b[2] && !b[3] && !b[4] && !b[5] && !b[6] && !b[7] &&
      b[8])
    ansmin = 1;
  cout << ansmin << ' ' << ansmax << endl;
}
