n = int(input())
a = list(map(int, input().split()))
topcoder = 0
colors = []
for i in a:
    if i > 3199:
        topcoder += 1
    else:
        colors.append(i//400)
print('{minimum} {maximum}'.format(minimum = len(list(set(colors))), maximum = len(list(set(colors)))+topcoder))
