const input = require('fs').readFileSync('/dev/stdin', 'utf8');

const n = Number(input);

const output = () => {
  if (n % 2 === 0) {
    console.log(n);
  } else {
    console.log(n * 2);
  }
}

output();
