n = int(input())
a = 1
sum = 1
while sum < n:
    a += 1
    sum += a
print(a)