from decimal import * N=int(input()) getcontext().prec = 10**5 getcontext().rounding=ROUND_DOWN print("{0:.{1}f}".format(Decimal(1)/Decimal(7),N))