import java.util.Scanner

object Main{
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n = sc.nextInt
    var answer = n
    if(n%2!=0){
      answer = n*2
    }
    println(answer)
  }
}