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