#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l = 0, u = 0;
  vector<int> used(8, 0);
  cin >> n;
  for (int i = 0; i < (int)n; i++) {
    int a;
    cin >> a;
    int r = a / 400;
    if (r < 8 && !used[r]) {
      used[r] = 1;
      l++;
      u++;
    }
    if (r >= 8) u++;
  }
  if (l == 0) l = u;
  printf("%d %d\n", l, u);
  return 0;
}
