int_input = int(input()) result = 0 if int_input%2 ==1: result = int_input else: result = int_input+1 print(result)