#K73612. Guess The Difference
Guess The Difference
Guess The Difference
In this problem, you are given three integers (X), (Y), and (G). The integers (X) and (Y) represent the inclusive range limits, where (X \leq Y). Haruto makes a guess (G) for the actual number, which is considered to be (Y). Your task is to compute the difference (Y-G) if (G) is within the range ([X, Y]). Otherwise, output the string Out of range
.
Formally, if (X \leq G \leq Y), output (Y-G); if (G < X) or (G > Y), output Out of range
.
Note: The input is provided via standard input and the output should be written to standard output.
inputFormat
The input consists of a single line containing three space-separated integers: (X), (Y), and (G). (X) and (Y) represent the inclusive range with (X \leq Y), and (G) is Haruto's guess.
outputFormat
Output a single value. If the guess (G) lies within the range ([X, Y]), print the integer (Y-G). Otherwise, print Out of range
.## sample
100 200 150
50