#include <bits/stdc++.h>
using namespace std;
const int qq = 2e5 + 10;
int num[15];
int main() {
  int n;
  scanf("%d", &n);
  int dif = 0;
  memset(num, 0, sizeof num);
  int x;
  for (int i = 1; i <= n; ++i) {
    scanf("%d", &x);
    if (x < 400)
      num[1]++;
    else if (x < 800)
      num[2]++;
    else if (x < 1200)
      num[3]++;
    else if (x < 1600)
      num[4]++;
    else if (x < 2000)
      num[5]++;
    else if (x < 2400)
      num[6]++;
    else if (x < 2800)
      num[7]++;
    else if (x < 3200)
      num[8]++;
    else
      dif++;
  }
  int color = 0;
  for (int i = 1; i <= 8; ++i)
    if (num[i] > 0) color++;
  int maxn = max(color, 1), minx = min(9, color + dif);
  printf("%d %d\n", maxn, minx);
  return 0;
}
