#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, b[9] = {0}, c = 0, d;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    a = a / 400;
    if (a > 8) a = 8;
    b[a]++;
  }
  for (int i = 0; i < 8; i++) {
    if (b[i] > 0) c++;
  }
  d = c + b[8];
  if (d > 8) d = 8;
  if (c == 0) c = 1;
  cout << c << " " << d << endl;
}
