Smallest multiple

Write a program that reads pairs of natural numbers aa and bb, and for each one prints the smallest natural number that is greater than or equal to aa and also a multiple of bb.

Input

Input consists of a sequence of pairs of natural numbers aa and bb with b1b \ge 1.

Output

For each aa and bb, print in a line the smallest natural number xx such that xax \ge a and x=mbx = mb for some natural number mm. Precede this with the case number starting at 1, following the format of the example.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T12:03:53.733Z

© Jutge.org, 2006–2026.
https://jutge.org