'use strict'

function Main(input) {
  const N = Number(input);
  
  if(N % 2 === 0) {
    console.log(N);
  } else {
    console.log(N * 2);
  }

}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());