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