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