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