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