#include <bits/stdc++.h>
using namespace std;
const int maxn = 105;
int a[maxn], n;
int g[10];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%d", &a[i]);
    if (a[i] <= 399)
      g[1]++;
    else if (a[i] <= 799)
      g[2]++;
    else if (a[i] <= 1199)
      g[3]++;
    else if (a[i] <= 1599)
      g[4]++;
    else if (a[i] <= 1999)
      g[5]++;
    else if (a[i] <= 2399)
      g[6]++;
    else if (a[i] <= 2799)
      g[7]++;
    else if (a[i] <= 3199)
      g[8]++;
    else
      g[9]++;
  }
  int ans1 = 0, ans2 = 0;
  for (int i = 1; i <= 8; ++i)
    if (g[i]) ++ans1;
  ans2 = ans1;
  if (g[9]) ans2 += min(8 - ans1, g[9]), ans1 = max(ans1, 1);
  printf("%d %d\n", ans1, ans2);
  return 0;
}
