Module: Geometry


Problem

2 /7


Point polar angle

Theory Click to read/hide

For this problem, you can use the formula \(tg(q) = {y \over x}\). We need to find the angle q (i.e. \(q = arctg({y \over x})\)). 
There is one point where \(q < 0\). In this case, we will do this:

if (q < 0) q = q + 2 * pi;
where  \(pi = 3.141592654\).

Problem

Two numbers are given - the coordinates of a point that does not coincide with the origin. Find the polar coordinates of a point that does not coincide with the origin.

Input
The input string contains two integers, the coordinates of the point. The numbers are integers, modulo not exceeding 1000.

Imprint
One number is the value of its polar angle (in radians). The value of the polar angle must belong to the interval [0; 2*π).

 

Examples
# Input Output
1 2 3 0.98279