The input is a sequence of at most 2000 triplets of positive integers, delimited by a space character in
between. Each line contains a single triplet. The sequence is followed by a triplet of zeros, 0 0 0, which
indicates the end of the input and should not be treated as data to be processed.
The output is a sequence of pairs of positive integers. The i
We are planning a similar project. Your task in the project is to find the most suitable width and height
of the translated rectangular picture. The term ``most suitable'' is defined as follows. An integer m
In other words, you will receive an integer m
Input
The integers of each input triplet are the integer m
Output
Each output line contains a single pair. A space character is put between the integers as a delimiter. No
other characters should appear in the output.
Sample Input
5 1 2
99999 999 999
1680 5 16
1970 1 1
2002 4 11
0 0 0
Sample Output
2 2
313 313
23 73
43 43
37 53