#include <bits/stdc++.h>
using ll = long long;
int main() {
  int N, a[100], used = 0, free = 0;
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    scanf("%d", a + i);
    if (3200 <= a[i])
      free++;
    else
      used |= 0x1 << (a[i] / 400);
  }
  used = (used & 0x55) + ((used >> 1) & 0x55);
  used = (used & 0x33) + ((used >> 2) & 0x33);
  used = (used & 0x0f) + ((used >> 4) & 0x0f);
  printf("%d %d\n", std::max(1, used), std::min(8, used + free));
}
