x, y, z = [int(x) for x in input().split()] print(min(x, y) + z // 2)