n = int(input())
A = map(int, input().split())
rate = [0] * 9
for a in A:
    tmp = a if a < 3200 else 3200
    rate[tmp // 400] += 1
color_min = 8 - rate[:-1].count(0)
color_max = min(color_min + rate[-1], 8)
color_min = max(1, color_min)
print(color_min, color_max)