#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c;
  int a[10], ans = 0, Count = 0;
  memset(a, 0, sizeof(a));
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> c;
    if (c >= 1 && c <= 399) a[1] = 1;
    if (c >= 400 && c <= 799) a[2] = 1;
    if (c >= 800 && c <= 1199) a[3] = 1;
    if (c >= 1200 && c <= 1599) a[4] = 1;
    if (c >= 1600 && c <= 1999) a[5] = 1;
    if (c >= 2000 && c <= 2399) a[6] = 1;
    if (c >= 2400 && c <= 2799) a[7] = 1;
    if (c >= 2800 && c <= 3199) a[8] = 1;
    if (c > 3199) ans++;
  }
  for (int i = 1; i <= 8; i++) {
    if (a[i] == 1) Count++;
  }
  printf("%d ", Count);
  if (Count + ans <= 8)
    printf("%d\n", Count + ans);
  else {
    printf("8\n");
  }
}
