inp = input() for div in range(3,200): mid = inp // div min = mid - div max = mid + div for lp in range(min,max): result = 0 calc = [] for lp2 in range(lp,lp+div): calc.append(lp2) result += lp2 if(result == inp): print(calc) print("YES") exit() print("NO")