import strutils let n = parseInt readLine stdin echo if n mod 2 == 0: succ n else: n