x, y, z = map(int, input().split()) ans = (x + y + z) // 2 print(ans)