N=int(input()) if N==1: print(1) else: for i in range(1,100000): if i*(i+1)//2>=N: print(i) break