number = int(input("Enter number: "))

print("\nDivisors of %d are: " %(number))
for i in range(1, number+1):
    if number%i == 0:
        print(i, end=" ")

number = int(input("Enter number: "))

print("\nDivisors of %d are: " %(number))
for i in range(1, number+1):
    if number%i == 0:
        print(i, end=" ")
