| Sin Cos Problem | 
Given A and B, you have to determine the maximum value of the function :
 ) = A*Sin
) = A*Sin + B*Cos
 + B*Cos 
 2000. Then there follows T lines,
each containing two integers A and B separated by a single space. A and B will fit in a signed
32bit integer.
2000. Then there follows T lines,
each containing two integers A and B separated by a single space. A and B will fit in a signed
32bit integer.
 (
 ( is in Radian) for
which the 
F(
 is in Radian) for
which the 
F( ) gives maximum value and the second one is the maximum value.
) gives maximum value and the second one is the maximum value.
Note: Pi is considered to be 
arccos(- 1).
4 1 1 -1 1 1 -1 -1 -1
0.79 1.41 5.50 1.41 2.36 1.41 3.93 1.41
Problem Setter: Muhammad Ridowan 
Alternate Solution: Zobayer Hasan