#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int l = 0, f = 1;
  char a = getchar();
  for (; a < '0' || a > '9'; a = getchar())
    if (a == '-') f = -1;
  for (; a >= '0' && a <= '9'; a = getchar()) l = l * 10 + a - 48;
  return l * f;
}
int n, a, ans, num[10];
int main() {
  n = read();
  for (int i = 1; i <= n; ++i) {
    a = read();
    if (1 <= a && a <= 399)
      num[1]++;
    else if (400 <= a && a <= 799)
      num[2]++;
    else if (800 <= a && a <= 1199)
      num[3]++;
    else if (1200 <= a && a <= 1599)
      num[4]++;
    else if (1600 <= a && a <= 1999)
      num[5]++;
    else if (2000 <= a && a <= 2399)
      num[6]++;
    else if (2400 <= a && a <= 2799)
      num[7]++;
    else if (2800 <= a && a <= 3199)
      num[8]++;
    else
      num[9]++;
  }
  for (int i = 1; i <= 8; ++i) ans += (num[i] > 0 ? 1 : 0);
  printf("%d %d\n", ans, ans + num[9]);
  return 0;
}
