Time limit
2s
Memory limit
128 MB
Kimtop is shopping for a TV online and learns that a TV's size is described by the diagonal length of its screen. However, even when two TVs have the same diagonal length, their actual height and width can differ depending on the height-to-width ratio.
Kimtop asked the store manager for the actual height and width, but the manager sent only the ratio between the height and the width.
Given the diagonal length of a TV and the ratio of its height to its width, write a program that computes the actual height and width.
The first line contains three integers separated by spaces: the diagonal length D, the height ratio H, and the width ratio W.
Print the actual height and actual width of the TV on the first line, separated by one space.
If the actual height or width is not an integer, print the greatest integer less than or equal to that value. For example, 1.7 is printed as 1.
5 ≤ D ≤ 1,0001 ≤ H ≤ 992 ≤ W ≤ 100H < WD, H, and W are integers.