#1235 N = int(input()) #9まで計算すれば十分 ans = 0 for i in range(9): ans = ans + 1 / pow(i + 1, N) print(ans)