N = int(input()) a = pow(10,N) b = a//7 if (N == 0): print(0) else: print("0." + str(b))