Functional equation#10804

Functional equation

1 second
128 megabytes
Very easy

Let f: \mathbb{R} \to \mathbb{R}, x \ne 0.

2f(x) + f\left(\frac{1}{x}\right) = x

Given a value of . Find the value of .

Input

One real number x, x \ne 0.

Output

Print the value of with decimal digits.

Examples

Example 1

Loading
Loading