import java.util.Scanner

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

}
