a, b = map(int, input().split())
for i in range(1,(a * b)+1):
        if i % a == 0 and i % b == 0:
            print(i)
            break;

/**************************************************************
	Problem: 1087
	User: admin
	Language: Python
	Result: Accepted
	Time:93 ms
	Memory:34244 kb
****************************************************************/