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