

Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 点
問題文
シカのAtCoDeerくんは、空の貯金箱を持っています。
AtCoDeerくんは、その貯金箱に、 日目の朝に 円、 日目の朝に 円 というように、 日目の朝に 円を貯金箱に入れます。
また、AtCoDeerくんは、毎日夜に貯金箱にいくら入っているかを確認します。
AtCoDeerくんが貯金箱に 円以上入っていることを初めて確認するのは、何日目の夜でしょうか?
制約
- は整数
入力
入力は以下の形式で標準入力から与えられる。
出力
答えを整数として出力せよ。
入力例 1Copy
12
出力例 1Copy
5
- 日目の朝に 円貯金する。 この日の夜、貯金箱の中身は 円である。
- 日目の朝に 円貯金する。 この日の夜、貯金箱の中身は 円である。
- 日目の朝に 円貯金する。 この日の夜、貯金箱の中身は 円である。
- 日目の朝に 円貯金する。 この日の夜、貯金箱の中身は 円である。
- 日目の朝に 円貯金する。 この日の夜、貯金箱の中身は 円である。
よって、AtCoDeerくんが貯金箱に 円以上入っていることを初めて確認するのは、 日目の夜です。
入力例 2Copy
100128
出力例 2Copy
447
Score : points
Problem Statement
AtCoDeer has an empty piggy bank.
On the morning of the -th day, he will put yen (Japanese currency) in it: yen on the morning of the -st day, yen on the morning of the -nd day, and so on.
Each night, he will check the amount of money in it.
On which day will he find out that his piggy bank has yen or more for the first time?
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print an integer such that AtCoDeer will find out that his piggy bank has yen or more for the first time on the -th day.
Sample Input 1Copy
12
Sample Output 1Copy
5
- On the -st day, the piggy bank gets yen in the morning and has yen at night.
- On the -st day, the piggy bank gets yen in the morning and has yen at night.
- On the -rd day, the piggy bank gets yen in the morning and has yen at night.
- On the -th day, the piggy bank gets yen in the morning and has yen at night.
- On the -th day, the piggy bank gets yen in the morning and has yen at night.
Thus, on the -th night, AtCoDeer will find out that his piggy bank has yen or more for the first time.
Sample Input 2Copy
100128
Sample Output 2Copy
447