E. Elderberry Wine
time limit per test
1 second
memory limit per test
1024 megabytes
input
standard input
output
standard output

Jeanne and her son Semi-Demi-John are engaged in the elderberry-wine making business.

The recipe requires, aside from a closely-guarded secret quantity of the letter $$$r$$$, strict proportions of $$$12$$$ parts fresh elderberries, $$$12$$$ parts brewing sugar, and $$$40$$$ parts water. As long as one or more ingredients are lacking, the team will place an order for as much extra as needed to make up the weight, and start again.

For instance:

  • If they have $$$18$$$kg of elderberries, $$$9$$$kg of sugar, and $$$100$$$kg of water, they can use $$$9$$$kg of elderberries, all $$$9$$$kg of the sugar, and $$$30$$$kg of the water and then they are stuck.
  • They must then order $$$9$$$kg more of sugar in order to proceed and use $$$9$$$kg, $$$9$$$kg, and $$$30$$$kg again.
  • After this they must order $$$12$$$kg each of elderberries and sugar in order to finally use $$$12$$$kg, $$$12$$$kg, and $$$40$$$kg of elderberries, sugar, and water respectively.
PhaseEb (kg)Su (kg)$$$H_{2}O$$$ (kg)
Initial Stock189100
First Brewing Run-9-9-30
Remaining Stock (Stuck)9070
Sugar Order0+90
Stock After First Order9970
Second Brewing Run-9-9-30
Remaining Stock (Stuck)0040
Berry + Sugar Order+12+120
Stock After Second Order121240
Final Brewing Run-12-12-40
Input

The input consists of one line containing three floating-point numbers $$$a$$$, $$$b$$$, $$$c$$$ ($$$0 \le a, b, c \le 10^{16}$$$): the number of kilograms of elderberries, sugar, and water respectively.

Output

Output three floating-point numbers $$$a'$$$ $$$b'$$$ $$$c'$$$ giving the cumulative total quantities of elderberries, sugar, and water that will be ordered respectively.

The output must be accurate to an absolute or relative error of $$$10^{-6}$$$.

Examples
Input
18 9 100
Output
12 21 0
Input
1.5 17 5
Output
15.5 0 51.666667
Input
3 4 7000000000000000
Output
2099999999999997 2099999999999996 0