for i in range(1,501):
	if 500%i == 0:
		print(i)
