inp = []
for i in range(3):
    inp.append(int(input()))

print(sum(inp) // 3)