from easyinput import read

n = read(int)
while n is not None:
  print(factor_mes_gran(n))  
  n = read(int)

