#K61342. Taco Items Bonus Calculation
Taco Items Bonus Calculation
Taco Items Bonus Calculation
You are given an integer n
representing the number of items you purchase. For every 10 items bought, you receive 1 free item. Your task is to calculate the total number of items received including these bonus items.
The relationship can be expressed in LaTeX as follows:
$$ total = n + \left\lfloor \frac{n}{10} \right\rfloor $$
For example, if you purchase 15 items, you get \(\lfloor15/10\rfloor = 1\) bonus item, making the total 16.
inputFormat
The input is provided via stdin as a single integer n
representing the number of items bought.
outputFormat
Output the total number of items received (purchased items plus bonus items) to stdout as a single integer.
## sample0
0