100 #ABC220A. [ABC220A] Find Multiple

[ABC220A] Find Multiple

Score : 100100 points

Problem Statement

Print a number between AA and BB (inclusive) that is a multiple of CC.

If there is no such number, print -1.

Constraints

  • 1AB10001 \leq A \leq B \leq 1000
  • 1C10001 \leq C \leq 1000
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

AA BB CC

Output

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

123 456 100
200

300 or 400 would also be accepted.

630 940 314
-1