3 lines
108 B
Python
3 lines
108 B
Python
a, b, c = map(int, input().split())
|
|
m, s = max(a,b,c), sum([a,b,c])
|
|
print(s if 2*m < s else 2 * (s - m) - 1) |