import math n=int(input()) i=int((math.sqrt(8*n+1)-1)/2) N=i-1 while Nn: print('NO') N+=1