# coding: utf-8

# Your code here!



import math

import fractions

def lcm(x, y):

    return (x * y) // fractions.gcd(x, y)



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

print((lcm(a, b)))
def gcd(x,y):

    if x%y==0: return y

    else: return gcd(y,x%y)



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

print((int(a*b/gcd(a,b))))
# coding: utf-8
# Your code here!
import math
import fractions


def lcm(x, y):
    return (x * y) // fractions.gcd(x, y)


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

def gcd(x, y):
    if x % y == 0:
        return y
    else:
        return gcd(y, x % y)


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

-# coding: utf-8 -# Your code here! -import math -import fractions - - -def lcm(x, y): -    return (x * y) // fractions.gcd(x, y) +def gcd(x, y): +    if x % y == 0: +        return y +    else: +        return gcd(y, x % y) -print((lcm(a, b))) +print((int(a * b / gcd(a, b))))