'use strict';

const receive = require('fs').readFileSync('/dev/stdin', 'utf8').split((/\s/));

const main = input => {
  const N = Number(input[0]);
  const ans = N % 2 === 0 ? N : N * 2;
  console.log(ans);
};

main(receive);