a,b=list(map(int,input().split()))

import fractions as f

print((a*b//f.gcd(a,b)))
a,b=list(map(int,input().split()))

from math import *

print((a*b//gcd(a,b)))
a, b = list(map(int, input().split()))
import fractions as f

print((a * b // f.gcd(a, b)))

a, b = list(map(int, input().split()))
from math import *

print((a * b // gcd(a, b)))

-import fractions as f +from math import * -print((a * b // f.gcd(a, b))) +print((a * b // gcd(a, b)))