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