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