#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a, mi = 5000, MA = 0;
  int c[9] = {};
  for (int i = 0; i < n; i++) {
    cin >> a;
    c[a / 400]++;
  }
  int kind = 0, kindM;
  for (int i = 0; i < 8; i++) {
    if (c[i]) kind++;
  }
  if (c[8])
    kindM = kind + c[8];
  else
    kindM = kind;
  if (kind == 0) kind++;
  cout << kind << " " << kindM;
}
