n = int(input())
a = [int(x)//400 for x in input().split()]

b = 0
c = []
for i in range(n):
    if a[i] > 7:
        b += 1
    elif a[i] not in c:
        c.append(a[i])

print(max(1, len(c)), min(8, len(c)+b))
