n = gets().to_i if 10 ** n / 7 == 0 puts(0) else puts("0." + (10 ** n / 7).to_s.rjust(n, "0")) end