#include <bits/stdc++.h>
using namespace std;
long long int n, a, vis[10], x = 0;
int main() {
  scanf("%lld", &n);
  for (long long int i = 0; i < n; i++) {
    scanf("%lld", &a);
    if (a >= 1 && a <= 399)
      vis[1] = 1;
    else if (a >= 400 && a <= 799)
      vis[2] = 1;
    else if (a >= 800 && a <= 1199)
      vis[3] = 1;
    else if (a >= 1200 && a <= 1599)
      vis[4] = 1;
    else if (a >= 1600 && a <= 1999)
      vis[5] = 1;
    else if (a >= 2000 && a <= 2399)
      vis[6] = 1;
    else if (a >= 2400 && a <= 2799)
      vis[7] = 1;
    else if (a >= 2800 && a <= 3199)
      vis[8] = 1;
    else
      x++;
  }
  long long int mn = 0, mx = 0, nots = 0;
  for (long long int i = 1; i <= 8; i++) {
    if (vis[i]) {
      mn++;
    } else {
      nots++;
    }
  }
  mx = mn + min(nots, x);
  printf("%lld %lld\n", mn, mx);
}
