import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) n=int(input().rstrip()) a=0 for i in range(1,10): a+=pow(i,-n) print(a)