Problem F
Brahmagupta-Fibonacci
Languages
en
is
You are given non-negative integers
Input
The first and only line of input contains non-negative
integers
Output
Print two lines of the form x^2 + y^2 = pq where
Sample Input 1 | Sample Output 1 |
---|---|
10 5 7 8 |
30^2 + 115^2 = 14125 110^2 + 45^2 = 14125 |
Sample Input 2 | Sample Output 2 |
---|---|
12 13 10 11 |
(-23)^2 + 262^2 = 69173 263^2 + 2^2 = 69173 |