#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int a[110];
  int b[9];
  for (int i = 0; i < 9; ++i) {
    b[i] = 0;
  }
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> a[i];
    for (int j = 0; j < 8; ++j) {
      if (j * 400 <= a[i] && a[i] < (j + 1) * 400) b[j]++;
    }
    if (3200 <= a[i]) b[8]++;
  }
  int mn = 0, mx = 0;
  for (int j = 0; j < 8; ++j) {
    if (b[j] > 0) mn++;
    mx++;
  }
  if (mn == 0) mn++;
  if (b[8] > 0) mx += b[8];
  cout << mn << " " << mx;
  return 0;
}
