import math N = int(input()) if N == 0: print(0) else: a = 10 ** N print("0." + str(a // 7))