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