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