n = int(input()) s = str(10**n // 7) print(0 if n == 0 else '0.' + s)