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