#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans, ansmin, ansmax, a;
  ans = 0;
  int rate[9] = {0};
  scanf("%d", &n);
  for (int i = (0); i < (n); ++i) {
    scanf("%d", &a);
    if (a <= 3200)
      rate[a / 400]++;
    else
      rate[8]++;
  }
  for (int i = (0); i < (8); ++i) {
    ans += (rate[i] > 0 ? 1 : 0);
  }
  ansmin = (ans = 0 && rate[8] > 0 ? 1 : ans);
  ansmax = ans + rate[8];
  printf("%d %d", ansmin, ansmax);
}
