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