#P48. 【例10.2】分钱游戏
【例10.2】分钱游戏
Description
Three people, A, B, and C, have a total of yuan. First, A distributes money to B and C, giving each the same amount they already have. Then, B distributes money to A and C in the same way. Finally, C distributes money to A and B in the same way. After these three distributions, each person has the same amount of money. Determine the original amount of money each person had.
Input Format
Input consists of the total amount of money the three people have ().
Output Format
Output the original amounts of money for A, B, and C, separated by spaces.
Sample
2413 7 4