k = io.read("*n") v = 0 for i = 1, 10 do z = 1 for j = 1, i do z = z * i end v = v + math.sin(k * i) / z end print(v)