import sys
 
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

n = ni()
a = na()


s = set()
x = 0
for v in a:
    if v < 3200:
        s.add(int(v / 400))
    else:
        x += 1

y = len(s)


if x > 0:
    y = max(1, y)

print("%d %d" % (y, x + y))
