418 - Algebraic Expression (II)
Algebraic Expression (II)
Time Limit: 1 sec
The Problem
If a - b = X and ab = Y, what is the value of a + b ?
[Note: Here a + b > 0]
Example
if a - b = 2 and ab = 24 then
a + b = 10
The Input
Input file contain a series of line, each line contains two integer numbers X and Y (0<X,Y<1000000).
The Output
For each line of input, output will show one integer numbesr which the value of a + b in a separate line.
Sample Input
2 24
36 9877
354 7875
Sample Output
10
202
396
Problem Setter: Shahin ShamS