from sys import stdin def main(): N = int(input()) n = 10 ** N ans = (n // 7) / n print(ans) input = lambda: stdin.readline() main()