n,x,c=int(input()),1,0 while xn: y-=1 x=x+y*2-y c+=1 print(c)