from math import sin K = int(input()) ans = sum(sin(K * N) / (N ** N) for N in range(1, 11)) print(ans)