const fs = require("fs");

function Main(input){
  input = parseInt(input);
  if(input % 2 == 0){
    return console.log(input);
  }
  console.log(input * 2);
}
Main(fs.readFileSync("/dev/stdin", "utf8"));