N = int(input()) n = 10**N // 7 P = n / (10**N) print(P)