Skip to content
Snippets Groups Projects
7.py 187 B
Newer Older
hacker717's avatar
hacker717 committed
n1, n2 = int(input()), int(input())

com = 0

for i in range(min(n1, n2), 0, -1):
    if n2 % i == 0 and n1 % i == 0:
        com = i
        break

print((n1 // com) * (n2 // com) * com)