Expansion of a Number#495

Expansion of a Number

1 second
64 megabytes
Easy

Any natural number can be represented as the sum of several consecutive natural numbers. For example, the number can be represented as the sum of one (), two (12 + 13), or five numbers (3 + 4 + 5 + 6 + 7). Write a program that determines the maximum number of numbers in such a decomposition.

Input

The first line of the input contains an integer (1 \leq N \leq 10^9).

Output

Output a single integer — the maximum number of terms in a decomposition of into consecutive natural numbers.

Examples

Example 1

Loading
Loading