try: X, Y, Z = map(int,input().split()) print((X + Y + Z) // 2) except Exception as e: print(e)