N = int(input()) c = 10 ** N // 7 if c == 0: print('0') else: print('0.' + str(c))