n = int(input()) x = pow(10, n) ans = (x//7)/x print(ans)