#t472. 分苹果

分苹果

Dividing Apples

Problem Description

A box of apples can be divided evenly among nn people or among mm people. What is the minimum number of apples in the box?

Input Format

Two positive integers n,m (0<n<1000,0<m<1000)n, m\ (0\lt n \lt 1000, 0 \lt m \lt 1000).

Output Format

One positive integer, the minimum number of apples satisfying the requirement.

Sample Input

8 10

Sample Output

40