#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
long long gcd(long long a, long long b) {
  for (;;) {
    if (a < b) swap(a, b);
    a %= b;
    if (a == 0) return b;
  }
}
int a[202020];
int main() {
  int num;
  scanf("%d", &num);
  for (int i = 0; i < num; i++) {
    int z;
    scanf("%d", &z);
    a[z / 400]++;
  }
  int r = 0, s = 0;
  for (int i = 0; i <= 7; i++) r += (a[i] > 0);
  for (int i = 8; i < 100; i++) s += a[i];
  printf("%d %d\n", r, r + s);
}
