#0003BA

Task Sok

Mirko and Slavko bought a few litters of orange, apple and pineapple juice. They are now whipping up a non alcoholic cocktail following a recipe they found on the Internet. Sadly, they figured out too late that not only you should use recipes when making cocktails, you should also use them when planning how much juice to buy.

Write a program that will determine how much of each juice they will have leftover, after they make as much cocktail as possible, respecting the recipe.



InputThe first line contains three integers, A, B, C, (1 ≤ A, B, C ≤ 500), amount of orange, apple and pineapple juice they bought, in liters. The second line contains three integers, I, J, K, (1 ≤ I, J, K ≤ 50), the ratio of orange, apple and pineapple juice in the cocktail.


OutputThe first and only line of output should contain three decimal numbers, leftover amounts of each juice, in liters.
Note: solutions with relative error 10-4 or smaller will be accepted.



Input:10 10 10
3 3 3

Output:0 0 0


Input:9 9 9
3 2 1

Output:0 3 6

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.