N = int(input()) print(N if N % 2 == 1 else N + 1)