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