#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[123];
  int n;
  int i;
  int co[9] = {};
  int sum = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    co[a[i] > 3200 ? 8 : a[i] / 400]++;
  }
  for (i = 0; i < 8; i++) {
    if (co[i] != 0) sum++;
  }
  cout << sum << " " << sum + co[8] << endl;
}
