n = int(input())

ans = 0
while True:
    if ans * (ans + 1) // 2 < n:
        ans += 1
    else:
        break
print(ans)