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