import sys # 辗转相除法 def gcd(a,b): b ,a= max(a,b),min(a,b) temp = b % a while temp: b = a a = temp temp = b % a return a a,b = map(int,input().split()) print(a*b//gcd(a,b))