import java.util.Scanner

fun main(args: Array<String>) {
  val cin = Scanner(System.`in`)
  val n = cin.nextInt()
  if (n % 2 == 0) {
    println(n)
  } else {
    println(n * 2)
  }

  cin.close()
}