N = int(input())
a = map(int, input().split())
rate_under = []
rate_upper = []
for i in a:
    x = i // 400
    if(x >= 8):
        rate_upper.append(x)
    else:
        rate_under.append(x)
min = len(set(rate_under))
max = min + len(rate_upper)
if(min == 0):
    min = 1
if(max >= 8):
    max = 8
print(str(min) + " " + str(max))