Problem2144--ABC220a - Find Multiple

2144: ABC220a - Find Multiple

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Problem Statement

Print a number between A and B (inclusive) that is a multiple of C.
If there is no such number, print -1.

Constraints

  • 1≤AB1000
  • 1C1000
  • All values in input are integers.

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.

Sample Input Copy

123 456 100

Sample Output Copy

200 (300 or 400 would also be accepted.)

Source/Category