#include <bits/stdc++.h>
using namespace std;
int n, k, cnt, a[10], sum;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &k);
    if (k <= 399)
      a[0]++;
    else if (k <= 799)
      a[1]++;
    else if (k <= 1199)
      a[2]++;
    else if (k <= 1599)
      a[3]++;
    else if (k <= 1999)
      a[4]++;
    else if (k <= 2399)
      a[5]++;
    else if (k <= 2799)
      a[6]++;
    else if (k <= 3199)
      a[7]++;
    else
      cnt++;
  }
  for (int i = 0; i <= 7; i++)
    if (a[i]) sum++;
  printf("%d %d\n", sum, sum + cnt);
  return 0;
}
