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