#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j;
  int c[9];
  for (i = 0; i < 9; i++) {
    c[i] = 0;
  }
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> j;
    if (3600 <= j)
      c[8]++;
    else
      c[j / 400]++;
  }
  j = 0;
  for (i = 0; i < 8; i++) {
    if (c[i] != 0) j++;
  }
  if (j == 0) {
    if (c[8] != 0) {
      cout << 1 << " ";
    }
  } else {
    cout << j << " ";
  }
  j += c[8];
  if (j > 8) {
    cout << 8;
  } else {
    cout << j;
  }
  return 0;
}
