x = int(eval(input()))



i = 1

temp = 0



while temp < x:

    temp += i

    i += 1



print((i-1))
x = int(eval(input()))

n = 1

while True:

    if ((1 + n) * n) // 2 >= x:

        print(n)

        break

    else:

        n += 1
x = int(eval(input()))
i = 1
temp = 0
while temp < x:
    temp += i
    i += 1
print((i - 1))

x = int(eval(input()))
n = 1
while True:
    if ((1 + n) * n) // 2 >= x:
        print(n)
        break
    else:
        n += 1

-i = 1 -temp = 0 -while temp < x: -    temp += i -    i += 1 -print((i - 1)) +n = 1 +while True: +    if ((1 + n) * n) // 2 >= x: +        print(n) +        break +    else: +        n += 1