#P34. [KBC002B] Sum 1

[KBC002B] Sum 1

Source

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

Problem Description

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

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

Input Format

One line consisting of an integer NN.

Output Format

One line consisting of an integer KK.

Samples

55
10
1000000000
44721

Data Range

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