n = int(input())
a = [int(x) for x in input().split()]

colors = ["gray","brown","green","water","blue","yellow","orange","red","other"]
d = {x: 0 for x in colors}

if n == 1:
    print("1 1")
else:
    for x in a:
        rate = x // 400
        if rate == 0:
            d["gray"] += 1
        elif rate == 1:
            d["brown"] += 1 
        elif rate == 2:
            d["green"] += 1 
        elif rate == 3:
            d["water"] += 1 
        elif rate == 4:
            d["blue"] += 1 
        elif rate == 5:
            d["yellow"] += 1 
        elif rate == 6:
            d["orange"] += 1 
        elif rate == 7:
            d["red"] += 1 
        elif rate > 7:
            d["other"] += 1 

    num = 0
    for x in d:
        if d[x] > 0 and x != "other":
            num += 1

    print(num, num+d["other"])