object Main extends App { val n = (new java.util.Scanner(System.in)).nextInt() val ans = if (n % 2 == 0) n / 2 else n println(ans.toString) }