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