eolymp
bolt
Try our new interface for solving problems
Problems

Construct a triangle 2

Construct a triangle 2

Construct a triangle given two angles and the side between them.

Input

Three real numbers - the length of a side of triangle and two adjacent to it angles in degrees. The lengths of the sides are positive numbers not exceeding 104, the angle is a positive number smaller than 180.

Output

Print 6 real numbers - the coordinates of the vertices of any triangle corresponding to the given input data with an accuracy at least 6 decimal digits.

Time limit 1 second
Memory limit 122.17 MiB
Input example #1
10 60 30
Output example #1
0.0000000000 0.0000000000
10.0000000000 0.0000000000
2.5000000000 4.3301270189