N = int(input())
a = list(map(int, input().split()))
b = []
rainbow = 0
for i in range(N):
    if a[i] >= 3200:
        rainbow += 1
    else:
        b.append(a[i]//400)
color = set(b)
min = len(color)
max = min + rainbow
if max > 8:
    max = 8
print(str(min)+" "+str(max))
