from math import * k = int(input()) ans = 0 for i in range(1, 20): ans += sin(k * i)/pow(i, i) print(ans)