Gears#4744

Gears

1 second
64 megabytes
Very easy

Consider two interconnected gears. One gear has teeth, and the other has teeth.

Your task is to determine the minimum number of rotations per tooth needed for both gears to return to their starting positions.

Input

The input consists of a single line containing two integers, and (1 \le N, K \le 10^7).

Output

Output the minimum number of teeth rotations required. It is guaranteed that this number will not exceed 10^9.

Examples

Example 1

Loading
Loading