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