100 atcoder#ABC206B. [ABC206B] Savings
[ABC206B] Savings
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.
12
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.
100128
447