100 atcoder#ABC099C. [ABC099C] Strange Bank
[ABC099C] Strange Bank
Score : points
Problem Statement
To make it difficult to withdraw money, a certain bank allows its customers to withdraw only one of the following amounts in one operation:
- yen (the currency of Japan)
- yen, yen, yen, ...
- yen, yen, yen, ...
At least how many operations are required to withdraw exactly yen in total?
It is not allowed to re-deposit the money you withdrew.
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
If at least operations are required to withdraw exactly yen in total, print .
127
4
By withdrawing yen, yen, yen and yen, we can withdraw yen in four operations.
3
3
By withdrawing yen three times, we can withdraw yen in three operations.
44852
16