n = io.read("*n") print(n % 2 == 0 and n + 1 or n)