A=int(input()) if A%2==0: print(A+1) if A%2==1: print(A)