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