A squared plus B squared
A squared plus B squared
Albert is an enthusiastic mathematician. He states that he knows all pythagorean triples that use the numbers from 1 to 1000. Naturally you feel obligated to one up Albert and wish to create a program that given any non-negative integer
Input Specification
The first line contains one integer
Output Specification
Output 2 space seperated integers
If multiple solutions exist, output the solution with the smallest value for
Bounds
Sample Input
Copy
89
Sample Output
Copy
5 8
Comments