There are rabbits, chickens, and crabs in a cage.
You are given:
the total number of animals,
the total number of legs, and
the total number of tails.
Compute the number of rabbits, chickens, and crabs.
If no valid solution exists (like 9, 48, and 20), output 0.
For your information,
(Hint: Recall the linear equation in variables. 聯立方程式)
Input three non-negative integers: total number of animals, total number of legs, total number of tails.
If a solution exists, output three positive integers in order: number of rabbits, chickens, and crabs.
Otherwise, output a single 0.
Ensure that the output, including formatting, exactly matches the provided samples.