n = io.read("*n") if n % 2 == 0 then print(math.floor(n / 2)) else print(1) end