n = int(input()) print(n if n % 2 != 0 else n + 1)