N = int(input()) print(N + ((N % 2) ^ 1))