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