function main(input) {
  var input = parseInt(input);
  var answer = input;
  if (input % 2 != 0) {
  	answer = input * 2;
  }
  console.log(answer);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));