while True:
    
    
    try:
        m, n = map(int, input().split())
        max_num = m if m >= n else n
        min_num = n if m >= n else m
        for i in range(min_num, m * n + 1, min_num):
            if i % max_num == 0:
                print(i)
                break
        
    except:
        break