import sys sys.set_int_max_str_digits(10 ** 6) N = int(input()) A = 10 ** N // 7 if A == 0: print(0) else: print("0." + str(A))