#include <bits/stdc++.h>
using namespace std;
const int maxn = 100 + 5;
int a[maxn];
bool c[maxn];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  if (n == 1) {
    printf("1 1\n");
    exit(0);
  }
  memset(c, 0, sizeof(c));
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] >= 3200) {
      cnt++;
      continue;
    }
    int tmp = 0;
    int co = 1;
    while (tmp < 3200) {
      if (a[i] >= tmp && a[i] <= tmp + 399) {
        c[co] = true;
        break;
      }
      co++;
      tmp += 399;
    }
  }
  int anocnt = 0;
  for (int i = 1; i <= 8; i++)
    if (c[i]) anocnt++;
  if (anocnt == 0)
    printf("1 %d\n", cnt);
  else
    printf("%d %d\n", anocnt, anocnt + cnt);
  return 0;
}
