#K88642. Mystical Creatures Count
Mystical Creatures Count
Mystical Creatures Count
You are given the total number of eyes and wings in a mystical forest. There are two types of creatures:
- Tigrones: Each has \(3\) eyes and \(2\) wings.
- Dracones: Each has \(2\) eyes and \(4\) wings.
Your task is to determine the number of Tigrones and Dracones such that the total number of eyes and wings exactly match the given counts. If no valid combination exists, output "No solutions".
Note: If there are multiple valid answers, output any one of them.
inputFormat
The input consists of a single line with two space-separated integers:
- The total number of eyes in the forest.
- The total number of wings in the forest.
For example: 10 12
outputFormat
If a valid combination of creatures exists, output two space-separated integers where the first integer is the number of Tigrones and the second is the number of Dracones. Otherwise, output No solutions
.
10 12
2 2
</p>