N = int(input()) n = 10 ** N num_7 = n // 7 if N != 0: print("0.",end = "") for s in str(num_7): print(s,end = "") else: print(0)