import strscans const maxV = 2_000_000_000 let (_, a, b) = stdin.readLine.scanTuple "$i $i" echo: if a < b: b - 2 else: maxV - b - 1