N = int(input()) k = pow(10, N) t = k // 7 print("0.%d" % t)