Bus stops are located every K meters from the beginning of the street, that is, at a distance of 0, K, 2K, 3K, etc. meters from the start. Light passed from the beginning of the street N meters, after which
tired and wanted to take the bus. Determine how many meters Sveta needs to walk to reach the nearest
stops.
Input
The program receives as input two integers K and N, written on separate lines.
1≤ K≤ 2 x 10
9, 1 ≤ N≤ 2 x 10
9
Imprint
The program should output a single integer — distance to the nearest stop.
Examples
# |
Input |
Output |
1 |
600
2000
| 200 |