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?
A single integer , where 1 \le S \le 2^{40}.
Print the required value of .
Example 1