Author: | N. Grebenyuk | Time limit: | 1 sec | |
Input file: | Standard input | Memory limit: | 256 Mb | |
Output file: | Standard output |
«To infinity and beyond»
You are now in the Kingdom of Infinity.
In order to escape you need to find the value of the endless expression √[3]n + √[3]n + √[3]n + ... with specified accuracy (of course, that you are in the Kingdom of Infinity, decimal representation of the expression can be infinitely long).
Your answer will be accepted if it has absolute error at most 10−5. More specifically, if your answer is a and the jury answer is b, your answer will be accepted if |a − b| ≤ 10−5.
The first line contains an integer n.
Print the value of this infinite expression with specified accuracy.
−1018 ≤ n ≤ 1018
No. | Standard input | Standard output |
---|---|---|
1 |
|
|
2 |
|
|
3 |
|
|