n = int(input()) if n == 0: print(0) exit() val = 10**n print((val//7)/(val))