#P453. 练82.2 三连击
练82.2 三连击
Description
Divide the numbers , , ..., into three groups to form three three-digit numbers, such that the ratio of these three numbers is ::. Find all possible combinations of three three-digit numbers that satisfy this condition. If no solution exists, output "No!!!".
Input Format
Three numbers, , , . It is guaranteed that .
Output Format
Multiple lines, each containing numbers. The lines should be sorted in ascending order by the first number.
Sample
1 2 3192 384 576
219 438 657
273 546 819
327 654 981