N = int(input()) print(N+(N & 1 ^ 1))