# https://atcoder.jp/contests/abc148/tasks/abc148_c
import sys
import fractions
def input(): return sys.stdin.readline().rstrip()

def main():
    a, b= map(int, input().split())
    print(a * b // fractions.gcd(a, b))

if __name__ == '__main__':
    main()

a60e5f48dd0b546c03d5977b2acac9cc00aa77c1
<mask token>


def main():
    a, b = map(int, input().split())
    print(a * b // fractions.gcd(a, b))


<mask token>

<mask token>


def input():
    return sys.stdin.readline().rstrip()


def main():
    a, b = map(int, input().split())
    print(a * b // fractions.gcd(a, b))


<mask token>

<mask token>


def input():
    return sys.stdin.readline().rstrip()


def main():
    a, b = map(int, input().split())
    print(a * b // fractions.gcd(a, b))


if __name__ == '__main__':
    main()

import sys
import fractions


def input():
    return sys.stdin.readline().rstrip()


def main():
    a, b = map(int, input().split())
    print(a * b // fractions.gcd(a, b))


if __name__ == '__main__':
    main()

# https://atcoder.jp/contests/abc148/tasks/abc148_c
import sys
import fractions
def input(): return sys.stdin.readline().rstrip()

def main():
    a, b= map(int, input().split())
    print(a * b // fractions.gcd(a, b))

if __name__ == '__main__':
    main()
