B. Racetrack

B. Racetrack
time limit per test
1 second
memory limit per test
64 megabytes
input
standard input
output
standard output

Alice and Bob play different games. When Alice plays, she always wins exactly a points. When Bob plays, he always wins exactly  bpoints. 

Today, after they finished playing, they noticed they had the same number of points. What is the smallest number this could be?

Input

The first line contains two integers, a and b, separated by spaces, where a is the number of points Alice wins in one game and b is the number of points Bob wins in one game. 

Output

You should return the smallest possible number of points that Alice and Bob have, which should be an integer c. 

Examples
input
Copy
2 3
output
Copy
6
input
Copy
4 6
output
Copy
12
Note

Constraints:

1 ≤ a ≤ 10, 000

1 ≤ b ≤ 10, 000

1 ≤ c ≤ 100, 000, 000

Comments

Popular posts from this blog

How to pass parameters in webhook?

Access and modify all the resources of our Wiki.js using WikiJS API

Fahrenheit to Celsius