2026-03-30 22:27:54 +09:00

1 line
110 B
Python

print((lambda a, b, c : c + (c - b) if a+c == 2*b else (a + c) - b)(*sorted(list(map(int, input().split())))))