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