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