import decimal decimal.getcontext().prec = 10**15 def e(a, b): if a < b: return e(b,a) if (a % b) == 0: return b else: return e(b, a%b) a, b = map(decimal.Decimal, input().split()) s = a + b m = a * b print(e(m,s))