x = int(input()) n = 10 ** x #10のx乗 seven = n // 7 y = seven / n print(y)