import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.set_int_max_str_digits(10**6) N = int(read()) x = (10 ** N) // 7 if x == 0: print(0) else: print('0.' + str(x))