#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a, ans = 0;
  int free = 0;
  int color[8] = {};
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a);
    if (a >= 3200)
      free++;
    else
      color[a / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) ans++;
  }
  printf("%d %d\n", max(1, ans), min(8, ans + free));
  return 0;
}
