x,t=int(eval(input())),0

while round(t*(t+1)/2)<x:t+=1

print(t)
x=int(eval(input()))

for t in range(1,10**10):

  if t*(t+1)//2>=x:print(t);exit()
x, t = int(eval(input())), 0
while round(t * (t + 1) / 2) < x:
    t += 1
print(t)

x = int(eval(input()))
for t in range(1, 10**10):
    if t * (t + 1) // 2 >= x:
        print(t)
        exit()

-x, t = int(eval(input())), 0 -while round(t * (t + 1) / 2) < x: -    t += 1 -print(t) +x = int(eval(input())) +for t in range(1, 10**10): +    if t * (t + 1) // 2 >= x: +        print(t) +        exit()