#Problem statement :
#Accept number from user and display factors of that number.
 
#Input : 12         Output :   1    2   3   4 

def Factors(no):
	for i in range(1,no/2+1;1):
		if no%i==0:
			print(i)
		

def main():
	print("Accept the number from user")
	n1=int(input())
	
	ret=Factors(n1,n2)
	print("Factors are ",ret)

if __name__=="__main__":
	main()

    