#P35. [KBC002B] Sum 1

[KBC002B] Sum 1

Source

This problem is adapted from Long Long OJ. All rights reserved.

Problem Statement

Given a number NN, find the minimum value of KK such that:

Ni=1Ki\displaystyle N \leq \sum_{i=1}^{K}i

Input

One line consisting of an integer NN.

Output

One line consisting of an integer KK.

Samples

55
10
1000000000
44721

Tips

1N1018.1 \leq N \leq 10^{18}.