# coding:utf-8 #JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 a=int(input()) b=0 for i in range(a): c=i+1 b=b+pow(1+1/c,c) print('{:.8f}'.format(b))