#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, cnt = 0;
  cin >> n;
  int a[n], b[9] = {};
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 8; j++) {
      if (400 * (j) <= a[i] && a[i] < 400 * (j + 1)) b[j]++;
    }
    if (3200 <= a[i]) b[8]++;
  }
  for (int i = 0; i < 9; i++) {
    if (b[i] != 0) cnt++;
  }
  if (b[8] > 0)
    cout << cnt - 1 << ' ' << cnt - 1 + b[8] << endl;
  else
    cout << cnt << ' ' << cnt << endl;
}
