object Main extends App { val n = scala.io.StdIn.readLine().toLong println(if (n % 2 == 0) n / 2 else n) }