#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  int a[9] = {0};
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    int color = rate / 400;
    if (rate >= 3200) color = 8;
    a[color]++;
  }
  int min_types = 0;
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) {
      min_types++;
    }
  }
  min_types = max(min_types, 1);
  int max_types = min_types + a[8];
  printf("%d %d\n", min_types, max_types);
}
