First line gives a integer, represent the number of inputs.(
)
Nextlines, each line gives a integer
, as the statement says.
The input guarantees that.
The output should havelines.
Each line has a integer, represent the number of gold coins you can get.
If you cannot survive, print.