"""Chicken wing"""
def main():
    """24 input"""
    num1 = int(input())
    num2 = int(input())
    num3 = int(input())
    num4 = int(input())
    num5 = int(input())
    num6 = int(input())
    num7 = int(input())
    num8 = int(input())
    num9 = int(input())
    num10 = int(input())
    num11 = int(input())
    num12 = int(input())
    num13 = int(input())
    num14 = int(input())
    num15 = int(input())
    num16 = int(input())
    num17 = int(input())
    num18 = int(input())
    num19 = int(input())
    num20 = int(input())
    num21 = int(input())
    num22 = int(input())
    num23 = int(input())
    num24 = int(input())
    topwing += main2(num1)
    topwing += main2(num2)
    topwing += main2(num3)
    topwing += main2(num4)
    topwing += main2(num5)
    topwing += main2(num6)
    topwing += main2(num7)
    topwing += main2(num8)
    topwing += main2(num9)
    topwing += main2(num10)
    topwing += main2(num11)
    topwing += main2(num12)
    topwing += main2(num13)
    topwing += main2(num14)
    topwing += main2(num15)
    topwing += main2(num16)
    topwing += main2(num17)
    topwing += main2(num18)
    topwing += main2(num19)
    topwing += main2(num20)
    topwing += main2(num21)
    topwing += main2(num22)
    topwing += main2(num23)
    topwing += main2(num24)
    print(topwing)

def main2(numa):
    """Count chickenwing"""
    if numa >= 50 and numa <= 70:
        numa += 1
        return numa
    else:
        numa += 0
        return numa
main()
