Important scientific number
Pin was assembling his very important new invention, but at some point he discovered that he had made a mistake in one of the formulas and could have assembled the corresponding part incorrectly.
After carefully looking at the detail and correcting the formula, Pin noted that now the part contains two gears with and teeth, respectively, and it will work correctly with gears of sizes and respectively, where is a non-negative integer such that is divisible by and is divisible by .
Pin is very tired, so he asks you to help him find such a non-negative that satisfies the given conditions. Because Pin doesn't like big gears, the minimum of all possible values should be chosen.
Input
One line contains two numbers and — the sizes of the gears in the detail.
Output
Print one non-negative integer — the minimum number of teeth missing in the gears for the invention to work correctly.