n = int(input()) if n == 0:exit(print(0)) print("0." + str(pow(10, n) // 7))