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