Credit
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Yura took a bank loan in the amount of a under p% per day. Every seventh day, Yura will return some amount b. 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 how much will be the last paid.
Input
Three integers a, p and b.
Output
Print two numbers - the number of payments and the amount that will be deposited last (with 2 decimal digits) or -1 if this is not possible.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 29%