#お金の入力 money = int(input()) money_gift = money % 2 if money_gift == 0: money = money + 1 print(money) else: print(money)