atcoder#SUMITB2019B. Tax Rate
Tax Rate
Score: points
Problem Statement
Takahashi bought a piece of apple pie at ABC Confiserie. According to his memory, he paid yen (the currency of Japan) for it.
The consumption tax rate for foods in this shop is percent. That is, to buy an apple pie priced at yen before tax, you have to pay yen (rounded down to the nearest integer).
Takahashi forgot the price of his apple pie before tax, , and wants to know it again. Write a program that takes as input and finds . We assume is an integer.
If there are multiple possible values for , find any one of them. Also, Takahashi's memory of , the amount he paid, may be incorrect. If no value could be , report that fact.
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
If there are values that could be , the price of the apple pie before tax, print any one of them.
If there are multiple such values, printing any one of them will be accepted.
If no value could be , print :(
.
432
400
If the apple pie is priced at yen before tax, you have to pay yen to buy one. Otherwise, the amount you have to pay will not be yen.
1079
:(
There is no possible price before tax for which you have to pay yen with tax.
1001
927
If the apple pie is priced yen before tax, by rounding down , you have to pay yen.