n = int(input())
a = list(map(int, input().split()))
thresholds = [1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200]
thresholds.reverse()

counts = [0 for _ in range(len(thresholds))]
for a_i in a:
    for i, threshold in enumerate(thresholds):
        if a_i >= threshold:
            counts[i] += 1
            break

sum = 0
for i in range(1, len(counts)):
    sum += 1 if counts[i] > 0 else 0
print("{} {}".format(max(1, sum), min(len(counts) - 1, sum + counts[0])))
