N = int(input()) n = 10 ** N num_7 = n // 7 if N != 0: print("0." + str(num_7)) else: print(0)