try: X, Y, Z = [int(i) for i in (input().split(' '))] print((X + Y + Z) // 2) except Exception as e: print(e)