## Inaho VI

View as PDF

Points: 10 (partial)
Time limit: 2.0s
Memory limit: 32M

Author:
Problem types

Inaho is very close to home! After leaving the -dimensional hole through the first gate, he arrives at another gate. On this gate is a natural number and two floating-point combination locks. Between the first and second lock is a sign, and next to the second lock is the letter . Strange. Extremely tired from travelling through the -dimensional hole, Inaho asks you to tell him what to set each combination lock to. However, if you tell him the wrong answer, Inaho will be sent back into the -dimensional hole, and he will be very mad at you!

Inaho does have a few hints for you, though. He suspects that the solution to the locks has something to do with complex numbers. More specifically, he suspects that the solution to the two locks require the -th tetration of otherwise known as or where is the imaginary unit.

The -th tetration of can be defined as:

where only the principal branch of the natural logarithm is used.

#### Input Specification

The first line will contain the integer .

For 1 of the 10 available marks, .

For an additional 1 of the 10 available marks, .

For an additional 1 of the 10 available marks, .

#### Output Specification

On the first line, output the real component of the -th tetration of .

On the second line, output the imaginary component of the -th tetration of .

Outputs with a relative or absolute error of will be accepted.

#### Sample Input

1

#### Sample Output

0.0000
1.0000