Credit#8661

Credit

1 Sekunde
128 Megabyte
Sehr leicht

Yura took a bank loan in the amount of under per day. Every seventh day, Yura will return some amount . Will Yura be able to settle accounts with the bank and if the answer is positive, then how many payments will he have to make and what will be the amount of the last payment.

Eingabe

Three integers , and .

Ausgabe

Print two numbers - the number of payments and the amount that will be deposited last (with decimal digits) or if this is not possible.

Beispiele

Beispiel 1

Loading
Loading