eolymp
bolt
Try our new interface for solving problems
Problems

Vasyas triangles

Vasyas triangles

Time limit 1 second
Memory limit 64 MiB

Vasya built an equilateral triangle with sides equal to 1, called him and arranged A_1B_1C_1 one side of the axis OX so that its midpoint located exactly at the origin and the vertex A_1 was placed on the positive half-OY. Each subsequent Vasin equilateral triangle has a length of exactly 2 more to the right and placed last, so that one of the peaks coincides with the OX axis at right top of the previous triangle and vertex A_n available in the upper half.

Vasya now interested in the question: what are the coordinates of a vertexA_nn-th triangle? Help him.

Input data

The single line of input file specified number of triangle n (1n10^4).

Output data

In a single line of output file output with three characters after the decimal point vertex coordinates A_nX_n and Y_n are interested Vasya triangle, separated by one space.

Examples

Input example #1
2
Output example #1
2.000 2.598
Author Анатолий Присяжнюк
Source Open and Distance Olympiads 2011-2012