func main() var x: int :: cui@inputInt() var y: int :: cui@inputInt() var z: int :: cui@inputInt() var ans: int :: z - (x <= z ?(1, 0)) - (y <= z ?(1, 0)) do cui@print("\{ans}\n") end func