12 lines
217 B
Python
12 lines
217 B
Python
tortiv, kmonet = map(int, input().split())
|
|
uzeEst = kmonet + 1
|
|
|
|
if kmonet > tortiv:
|
|
potratil = tortiv - 1
|
|
|
|
else:
|
|
potratil = kmonet
|
|
if uzeEst < tortiv:
|
|
potratil += (tortiv - uzeEst)
|
|
|
|
print(potratil) |