Bucks in the Bank#127

Bucks in the Bank

1 second
64 megabytes
Easy

Marley gave Scrooge dollar on his first birthday, and Scrooge deposited this money in the bank. Each following year, Marley doubled the amount of the previous gift and added a number of dollars equal to Scrooge's age. Scrooge continued to deposit all the money in the bank. On which birthday, denoted as , will the total amount in the bank reach at least dollars?

Input

A single integer , where 1 \le S \le 2^{40}.

Output

Print the required value of .

Examples

Example 1

Loading
Loading