#include <bits/stdc++.h>
using namespace std;
int n, x, rating[8], topster = 0;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    scanf("%d", &x);
    if (x <= 399) rating[0] = 1;
    if (x >= 400 && x <= 799) rating[1] = 1;
    if (x >= 800 && x <= 1199) rating[2] = 1;
    if (x >= 1200 && x <= 1599) rating[3] = 1;
    if (x >= 1600 && x <= 1999) rating[4] = 1;
    if (x >= 2000 && x <= 2399) rating[5] = 1;
    if (x >= 2400 && x <= 2799) rating[6] = 1;
    if (x >= 2800 && x <= 3199) rating[7] = 1;
    if (x >= 3200) ++topster;
  }
  int mini = 0;
  for (int i = 0; i <= 7; ++i) mini += rating[i];
  int maxi = min(8, mini + topster);
  printf("%d %d\n", max(mini, 1), maxi);
  return 0;
}
