"use strict"

function main(input) {

    const a = 2
    let i = parseInt(input, 10)

    if (i % a === 0) {
        console.log(i)
    } else {

        console.log(i * a)
    }


}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));