N = int(input())
a = list(map(int, input().split()))
top = 0
color = []
for i in range(N):
    if a[i] < 400:
        color.append(0)
    elif a[i] < 800:
        color.append(1)
    elif a[i] < 1200:
        color.append(2)
    elif a[i] < 1600:
        color.append(3)
    elif a[i] < 2000:
        color.append(4)
    elif a[i] < 2400:
        color.append(5)
    elif a[i] < 2800:
        color.append(6)
    elif a[i] < 3200:
        color.append(7)
    else:
        top += 1

s = set(color)
print(len(s), len(s) + top)
