Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x, y, z = map(int, input().split())
- if y > z:
- y, z = z, y
- a = (z - y) - 1
- b = (x - z) + (y -1)
- print(min(a, b))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement