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