user = int(input("enter any num"))
user1 = int(input("num"))
h=user*user1
a=1
while a<=h:
    if h%a==0:
        print(a)
    a=a+1
# It will print highest common factor after nultiply two numbers(HCF)
