res=[1.202056903, 1.082323234, 1.036927755, 1.017343062, 1.008349277, 1.004077356, 1.002008393, 1.000994575, 1.000494189, 1.000246087, 1.000122713, 1.000061248, 1.000030588, 1.000015282, 1.000007637, 1.000003, 1.000002] N=int(input()) print(res[N-1] if N<=len(res)-1 else 1)