N = int(input())
a = list(map(int, input().split()))
c = 0
color = []
for a_i in a:
    if a_i//400>7:
        c += 1
    color.append(a_i//400)
    
ans_min = len(set(color))
if c>0:
    ans_min -= 1
print(ans_min, ans_min+c)