Problem9513--ABC220 —— A - Find Multiple

9513: ABC220 —— A - Find Multiple

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 512 MiB

Description

Print a number between $A$ and $B$ (inclusive) that is a multiple of $C$.

If there is no such number, print `-1`.

Input

Input is given from Standard Input in the following format:

```
$A$ $B$ $C$
```

Output

Print the answer.  
If there is no number with the desired property, print `-1`.

Constraints

-   $1 \leq A \leq B \leq 1000$
-   $1 \leq C \leq 1000$
-   All values in input are integers.

Sample 1 Input

123 456 100

Sample 1 Output

200
300 or 400 would also be accepted.

Sample 2 Input

630 940 314

Sample 2 Output

-1

Source/Category